home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ISO-8859 text
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 73 65 | 6e 61 74 6f 72 2d 62 65 |Path: se|nator-be|
|00000010| 64 66 65 6c 6c 6f 77 2e | 6d 69 74 2e 65 64 75 21 |dfellow.|mit.edu!|
|00000020| 66 61 71 73 65 72 76 0a | 46 72 6f 6d 3a 20 6d 69 |faqserv.|From: mi|
|00000030| 6b 65 40 76 6c 73 69 76 | 69 65 2e 74 75 77 69 65 |ke@vlsiv|ie.tuwie|
|00000040| 6e 2e 61 63 2e 61 74 0a | 4e 65 77 73 67 72 6f 75 |n.ac.at.|Newsgrou|
|00000050| 70 73 3a 20 63 6f 6d 70 | 2e 75 6e 69 78 2e 71 75 |ps: comp|.unix.qu|
|00000060| 65 73 74 69 6f 6e 73 2c | 63 6f 6d 70 2e 73 74 64 |estions,|comp.std|
|00000070| 2e 69 6e 74 65 72 6e 61 | 74 2c 63 6f 6d 70 2e 73 |.interna|t,comp.s|
|00000080| 6f 66 74 77 61 72 65 2e | 69 6e 74 65 72 6e 61 74 |oftware.|internat|
|00000090| 69 6f 6e 61 6c 2c 63 6f | 6d 70 2e 6c 61 6e 67 2e |ional,co|mp.lang.|
|000000a0| 63 2c 63 6f 6d 70 2e 77 | 69 6e 64 6f 77 73 2e 78 |c,comp.w|indows.x|
|000000b0| 2c 63 6f 6d 70 2e 73 74 | 64 2e 63 2c 63 6f 6d 70 |,comp.st|d.c,comp|
|000000c0| 2e 61 6e 73 77 65 72 73 | 2c 6e 65 77 73 2e 61 6e |.answers|,news.an|
|000000d0| 73 77 65 72 73 0a 53 75 | 62 6a 65 63 74 3a 20 50 |swers.Su|bject: P|
|000000e0| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 66 6f 72 20 49 |rogrammi|ng for I|
|000000f0| 6e 74 65 72 6e 61 74 69 | 6f 6e 61 6c 69 7a 61 74 |nternati|onalizat|
|00000100| 69 6f 6e 20 46 41 51 0a | 53 75 70 65 72 73 65 64 |ion FAQ.|Supersed|
|00000110| 65 73 3a 20 3c 69 6e 74 | 65 72 6e 61 74 69 6f 6e |es: <int|ernation|
|00000120| 61 6c 69 7a 61 74 69 6f | 6e 2f 70 72 6f 67 72 61 |alizatio|n/progra|
|00000130| 6d 6d 69 6e 67 2d 66 61 | 71 5f 38 32 37 32 30 37 |mming-fa|q_827207|
|00000140| 30 35 39 40 72 74 66 6d | 2e 6d 69 74 2e 65 64 75 |059@rtfm|.mit.edu|
|00000150| 3e 0a 46 6f 6c 6c 6f 77 | 75 70 2d 54 6f 3a 20 63 |>.Follow|up-To: c|
|00000160| 6f 6d 70 2e 75 6e 69 78 | 2e 71 75 65 73 74 69 6f |omp.unix|.questio|
|00000170| 6e 73 2c 63 6f 6d 70 2e | 73 74 64 2e 69 6e 74 65 |ns,comp.|std.inte|
|00000180| 72 6e 61 74 2c 63 6f 6d | 70 2e 73 6f 66 74 77 61 |rnat,com|p.softwa|
|00000190| 72 65 2e 69 6e 74 65 72 | 6e 61 74 69 6f 6e 61 6c |re.inter|national|
|000001a0| 2c 63 6f 6d 70 2e 6c 61 | 6e 67 2e 63 2c 63 6f 6d |,comp.la|ng.c,com|
|000001b0| 70 2e 77 69 6e 64 6f 77 | 73 2e 78 2c 63 6f 6d 70 |p.window|s.x,comp|
|000001c0| 2e 73 74 64 2e 63 0a 44 | 61 74 65 3a 20 31 39 20 |.std.c.D|ate: 19 |
|000001d0| 41 70 72 20 31 39 39 36 | 20 30 35 3a 31 33 3a 35 |Apr 1996| 05:13:5|
|000001e0| 39 20 47 4d 54 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |9 GMT.Or|ganizati|
|000001f0| 6f 6e 3a 20 54 55 20 57 | 69 65 6e 0a 41 70 70 72 |on: TU W|ien.Appr|
|00000200| 6f 76 65 64 3a 20 6e 65 | 77 73 2d 61 6e 73 77 65 |oved: ne|ws-answe|
|00000210| 72 73 2d 72 65 71 75 65 | 73 74 40 4d 49 54 2e 45 |rs-reque|st@MIT.E|
|00000220| 44 55 0a 45 78 70 69 72 | 65 73 3a 20 32 20 4a 75 |DU.Expir|es: 2 Ju|
|00000230| 6e 20 31 39 39 36 20 30 | 35 3a 31 30 3a 32 31 20 |n 1996 0|5:10:21 |
|00000240| 47 4d 54 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |GMT.Mess|age-ID: |
|00000250| 3c 69 6e 74 65 72 6e 61 | 74 69 6f 6e 61 6c 69 7a |<interna|tionaliz|
|00000260| 61 74 69 6f 6e 2f 70 72 | 6f 67 72 61 6d 6d 69 6e |ation/pr|ogrammin|
|00000270| 67 2d 66 61 71 5f 38 32 | 39 38 39 30 36 32 31 40 |g-faq_82|9890621@|
|00000280| 72 74 66 6d 2e 6d 69 74 | 2e 65 64 75 3e 0a 4e 4e |rtfm.mit|.edu>.NN|
|00000290| 54 50 2d 50 6f 73 74 69 | 6e 67 2d 48 6f 73 74 3a |TP-Posti|ng-Host:|
|000002a0| 20 62 6c 6f 6f 6d 2d 70 | 69 63 61 79 75 6e 65 2e | bloom-p|icayune.|
|000002b0| 6d 69 74 2e 65 64 75 0a | 4d 69 6d 65 2d 56 65 72 |mit.edu.|Mime-Ver|
|000002c0| 73 69 6f 6e 3a 20 31 2e | 30 0a 43 6f 6e 74 65 6e |sion: 1.|0.Conten|
|000002d0| 74 2d 54 79 70 65 3a 20 | 74 65 78 74 2f 70 6c 61 |t-Type: |text/pla|
|000002e0| 69 6e 3b 20 63 68 61 72 | 73 65 74 3d 49 53 4f 2d |in; char|set=ISO-|
|000002f0| 38 38 35 39 2d 31 0a 43 | 6f 6e 74 65 6e 74 2d 54 |8859-1.C|ontent-T|
|00000300| 72 61 6e 73 66 65 72 2d | 45 6e 63 6f 64 69 6e 67 |ransfer-|Encoding|
|00000310| 3a 20 38 62 69 74 0a 53 | 75 6d 6d 61 72 79 3a 20 |: 8bit.S|ummary: |
|00000320| 54 68 69 73 20 46 41 51 | 20 64 69 73 63 75 73 73 |This FAQ| discuss|
|00000330| 65 73 20 77 72 69 74 69 | 6e 67 20 70 72 6f 67 72 |es writi|ng progr|
|00000340| 61 6d 73 20 77 68 69 63 | 68 20 63 61 6e 20 68 61 |ams whic|h can ha|
|00000350| 6e 64 6c 65 0a 20 20 20 | 20 20 20 20 20 20 64 69 |ndle. | di|
|00000360| 66 66 65 72 65 6e 74 20 | 6c 61 6e 67 75 61 67 65 |fferent |language|
|00000370| 20 63 6f 6e 76 65 6e 74 | 69 6f 6e 73 2f 63 68 61 | convent|ions/cha|
|00000380| 72 61 63 74 65 72 20 73 | 65 74 73 2f 65 74 63 2e |racter s|ets/etc.|
|00000390| 0a 20 20 20 20 20 20 20 | 20 20 41 70 70 6c 69 63 |. | Applic|
|000003a0| 61 62 6c 65 20 74 6f 20 | 61 6c 6c 20 63 68 61 72 |able to |all char|
|000003b0| 61 63 74 65 72 20 73 65 | 74 20 65 6e 63 6f 64 69 |acter se|t encodi|
|000003c0| 6e 67 73 3b 20 77 69 74 | 68 20 70 61 72 74 69 63 |ngs; wit|h partic|
|000003d0| 75 6c 61 72 20 0a 09 20 | 65 6d 70 68 61 73 69 73 |ular .. |emphasis|
|000003e0| 20 6f 6e 20 49 53 4f 2d | 38 38 35 39 2d 31 2e 0a | on ISO-|8859-1..|
|000003f0| 58 2d 4c 61 73 74 2d 55 | 70 64 61 74 65 64 3a 20 |X-Last-U|pdated: |
|00000400| 31 39 39 35 2f 31 30 2f | 31 31 0a 4f 72 69 67 69 |1995/10/|11.Origi|
|00000410| 6e 61 74 6f 72 3a 20 66 | 61 71 73 65 72 76 40 62 |nator: f|aqserv@b|
|00000420| 6c 6f 6f 6d 2d 70 69 63 | 61 79 75 6e 65 2e 4d 49 |loom-pic|ayune.MI|
|00000430| 54 2e 45 44 55 0a 0a 0a | 41 72 63 68 69 76 65 2d |T.EDU...|Archive-|
|00000440| 6e 61 6d 65 3a 20 69 6e | 74 65 72 6e 61 74 69 6f |name: in|ternatio|
|00000450| 6e 61 6c 69 7a 61 74 69 | 6f 6e 2f 70 72 6f 67 72 |nalizati|on/progr|
|00000460| 61 6d 6d 69 6e 67 2d 66 | 61 71 0a 50 6f 73 74 69 |amming-f|aq.Posti|
|00000470| 6e 67 2d 46 72 65 71 75 | 65 6e 63 79 3a 20 6d 6f |ng-Frequ|ency: mo|
|00000480| 6e 74 68 6c 79 0a 56 65 | 72 73 69 6f 6e 3a 20 31 |nthly.Ve|rsion: 1|
|00000490| 2e 39 31 0a 0a 0a 09 09 | 20 20 50 72 6f 67 72 61 |.91.....| Progra|
|000004a0| 6d 6d 69 6e 67 20 66 6f | 72 20 49 6e 74 65 72 6e |mming fo|r Intern|
|000004b0| 61 74 69 6f 6e 61 6c 69 | 7a 61 74 69 6f 6e 0a 0a |ationali|zation..|
|000004c0| 09 09 09 20 20 4d 69 63 | 68 61 65 6c 20 4b 2e 20 |... Mic|hael K. |
|000004d0| 47 73 63 68 77 69 6e 64 | 0a 0a 0a 0a 44 49 53 43 |Gschwind|....DISC|
|000004e0| 4c 41 49 4d 45 52 3a 20 | 54 48 45 20 41 55 54 48 |LAIMER: |THE AUTH|
|000004f0| 4f 52 20 4d 41 4b 45 53 | 20 4e 4f 20 57 41 52 52 |OR MAKES| NO WARR|
|00000500| 41 4e 54 59 20 4f 46 20 | 41 4e 59 20 4b 49 4e 44 |ANTY OF |ANY KIND|
|00000510| 20 57 49 54 48 20 52 45 | 47 41 52 44 20 54 4f 0a | WITH RE|GARD TO.|
|00000520| 54 48 49 53 20 4d 41 54 | 45 52 49 41 4c 2c 20 49 |THIS MAT|ERIAL, I|
|00000530| 4e 43 4c 55 44 49 4e 47 | 2c 20 42 55 54 20 4e 4f |NCLUDING|, BUT NO|
|00000540| 54 20 4c 49 4d 49 54 45 | 44 20 54 4f 2c 20 54 48 |T LIMITE|D TO, TH|
|00000550| 45 20 49 4d 50 4c 49 45 | 44 20 57 41 52 52 41 4e |E IMPLIE|D WARRAN|
|00000560| 54 49 45 53 0a 4f 46 20 | 4d 45 52 43 48 41 4e 54 |TIES.OF |MERCHANT|
|00000570| 41 42 49 4c 49 54 59 20 | 41 4e 44 20 46 49 54 4e |ABILITY |AND FITN|
|00000580| 45 53 53 20 46 4f 52 20 | 41 20 50 41 52 54 49 43 |ESS FOR |A PARTIC|
|00000590| 55 4c 41 52 20 50 55 52 | 50 4f 53 45 2e 0a 0a 4e |ULAR PUR|POSE...N|
|000005a0| 6f 74 65 3a 20 4d 6f 73 | 74 20 6f 66 20 74 68 69 |ote: Mos|t of thi|
|000005b0| 73 20 77 61 73 20 74 65 | 73 74 65 64 20 6f 6e 20 |s was te|sted on |
|000005c0| 61 20 53 75 6e 20 31 30 | 2c 20 72 75 6e 6e 69 6e |a Sun 10|, runnin|
|000005d0| 67 20 53 75 6e 4f 53 20 | 34 2e 31 2e 2a 20 2d 20 |g SunOS |4.1.* - |
|000005e0| 6f 74 68 65 72 0a 73 79 | 73 74 65 6d 73 20 6d 69 |other.sy|stems mi|
|000005f0| 67 68 74 20 64 69 66 66 | 65 72 20 73 6c 69 67 68 |ght diff|er sligh|
|00000600| 74 6c 79 0a 0a 54 68 69 | 73 20 46 41 51 20 64 69 |tly..Thi|s FAQ di|
|00000610| 73 63 75 73 73 65 73 20 | 74 6f 70 69 63 73 20 72 |scusses |topics r|
|00000620| 65 6c 61 74 65 64 20 74 | 6f 20 69 6e 74 65 72 6e |elated t|o intern|
|00000630| 61 74 69 6f 6e 61 6c 69 | 7a 61 74 69 6f 6e 2e 20 |ationali|zation. |
|00000640| 53 69 6d 70 6c 65 20 69 | 31 38 6e 0a 73 75 70 70 |Simple i|18n.supp|
|00000650| 6f 72 74 20 66 6f 72 20 | 45 75 72 6f 70 65 2c 20 |ort for |Europe, |
|00000660| 4c 61 74 69 6e 20 41 6d | 65 72 69 63 61 2c 20 61 |Latin Am|erica, a|
|00000670| 6e 64 20 74 68 65 20 4d | 69 64 64 6c 65 20 45 61 |nd the M|iddle Ea|
|00000680| 73 74 20 6d 69 67 68 74 | 20 75 73 65 20 6f 66 0a |st might| use of.|
|00000690| 74 68 65 20 49 53 4f 20 | 38 38 35 39 2d 58 20 62 |the ISO |8859-X b|
|000006a0| 61 73 65 64 20 38 20 62 | 69 74 20 63 68 61 72 61 |ased 8 b|it chara|
|000006b0| 63 74 65 72 20 73 65 74 | 73 2e 20 20 46 6f 72 20 |cter set|s. For |
|000006c0| 77 69 64 65 72 20 70 6f | 72 74 61 62 69 6c 69 74 |wider po|rtabilit|
|000006d0| 79 2c 20 61 0a 73 74 61 | 6e 64 61 72 64 20 73 75 |y, a.sta|ndard su|
|000006e0| 63 68 20 61 73 20 55 6e | 69 63 6f 64 65 20 69 73 |ch as Un|icode is|
|000006f0| 20 69 6e 20 6f 72 64 65 | 72 2e 0a 0a 54 68 69 73 | in orde|r...This|
|00000700| 20 46 41 51 20 64 69 73 | 63 75 73 73 65 73 20 68 | FAQ dis|cusses h|
|00000710| 6f 77 20 74 6f 20 70 72 | 6f 67 72 61 6d 20 61 70 |ow to pr|ogram ap|
|00000720| 70 6c 69 63 61 74 69 6f | 6e 73 20 77 68 69 63 68 |plicatio|ns which|
|00000730| 20 73 75 70 70 6f 72 74 | 20 74 68 65 20 75 73 65 | support| the use|
|00000740| 0a 45 75 72 6f 70 65 61 | 6e 20 28 4c 61 74 69 6e |.Europea|n (Latin|
|00000750| 20 41 6d 65 72 69 63 61 | 6e 29 20 6e 61 74 69 6f | America|n) natio|
|00000760| 6e 61 6c 20 63 68 61 72 | 61 63 74 65 72 20 73 65 |nal char|acter se|
|00000770| 74 73 20 6f 6e 20 55 4e | 49 58 2d 62 61 73 65 64 |ts on UN|IX-based|
|00000780| 0a 73 79 73 74 65 6d 73 | 20 61 6e 64 20 73 74 61 |.systems| and sta|
|00000790| 6e 64 61 72 64 20 43 20 | 65 6e 76 69 72 6f 6e 6d |ndard C |environm|
|000007a0| 65 6e 74 73 2c 20 61 6e | 64 20 64 69 73 63 75 73 |ents, an|d discus|
|000007b0| 73 65 73 20 73 6f 6d 65 | 20 63 68 6f 69 63 65 73 |ses some| choices|
|000007c0| 20 77 69 74 68 0a 72 65 | 73 70 65 63 74 20 74 6f | with.re|spect to|
|000007d0| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 74 73 2e | charact|er sets.|
|000007e0| 0a 0a 0a 49 4e 54 52 4f | 44 55 43 54 49 4f 4e 20 |...INTRO|DUCTION |
|000007f0| 0a 0a 4d 6f 73 74 20 6f | 66 20 74 68 65 20 69 6e |..Most o|f the in|
|00000800| 66 6f 72 6d 61 74 69 6f | 6e 20 67 69 76 65 6e 20 |formatio|n given |
|00000810| 68 65 72 65 20 69 73 20 | 69 6e 64 65 70 65 6e 64 |here is |independ|
|00000820| 65 6e 74 20 6f 66 20 74 | 68 65 20 63 68 61 72 61 |ent of t|he chara|
|00000830| 63 74 65 72 0a 65 6e 63 | 6f 64 69 6e 67 20 75 73 |cter.enc|oding us|
|00000840| 65 64 20 28 65 2e 67 2e | 20 44 45 43 20 4d 43 53 |ed (e.g.| DEC MCS|
|00000850| 2c 20 49 53 4f 20 4c 61 | 74 69 6e 2d 58 2c 20 65 |, ISO La|tin-X, e|
|00000860| 74 63 2e 29 2c 20 62 75 | 74 20 63 61 6e 20 62 65 |tc.), bu|t can be|
|00000870| 20 61 70 70 6c 69 65 64 | 20 74 6f 0a 61 6e 79 20 | applied| to.any |
|00000880| 63 68 61 72 61 63 74 65 | 72 20 73 65 74 2c 20 70 |characte|r set, p|
|00000890| 72 6f 76 69 64 69 6e 67 | 20 74 68 65 20 70 72 6f |roviding| the pro|
|000008a0| 67 72 61 6d 6d 69 6e 67 | 20 65 6e 76 69 72 6f 6e |gramming| environ|
|000008b0| 6d 65 6e 74 20 68 61 73 | 0a 70 72 6f 76 69 73 69 |ment has|.provisi|
|000008c0| 6f 6e 73 20 66 6f 72 20 | 74 68 69 73 20 73 74 61 |ons for |this sta|
|000008d0| 6e 64 61 72 64 2e 0a 0a | 0a 31 2e 20 57 68 69 63 |ndard...|.1. Whic|
|000008e0| 68 20 63 6f 64 69 6e 67 | 20 73 68 6f 75 6c 64 20 |h coding| should |
|000008f0| 49 20 75 73 65 20 66 6f | 72 20 61 63 63 65 6e 74 |I use fo|r accent|
|00000900| 65 64 20 63 68 61 72 61 | 63 74 65 72 73 3f 0a 55 |ed chara|cters?.U|
|00000910| 73 65 20 74 68 65 20 69 | 6e 74 65 72 6e 61 74 69 |se the i|nternati|
|00000920| 6f 6e 61 6c 6c 79 20 73 | 74 61 6e 64 61 72 64 69 |onally s|tandardi|
|00000930| 7a 65 64 20 49 53 4f 2d | 38 38 35 39 2d 31 20 63 |zed ISO-|8859-1 c|
|00000940| 68 61 72 61 63 74 65 72 | 20 73 65 74 20 74 6f 20 |haracter| set to |
|00000950| 74 79 70 65 0a 61 63 63 | 65 6e 74 65 64 20 63 68 |type.acc|ented ch|
|00000960| 61 72 61 63 74 65 72 73 | 2e 20 54 68 69 73 20 63 |aracters|. This c|
|00000970| 68 61 72 61 63 74 65 72 | 20 73 65 74 20 63 6f 6e |haracter| set con|
|00000980| 74 61 69 6e 73 20 61 6c | 6c 20 63 68 61 72 61 63 |tains al|l charac|
|00000990| 74 65 72 73 0a 6e 65 63 | 65 73 73 61 72 79 20 74 |ters.nec|essary t|
|000009a0| 6f 20 74 79 70 65 20 28 | 57 65 73 74 29 20 45 75 |o type (|West) Eu|
|000009b0| 72 6f 70 65 61 6e 20 6c | 61 6e 67 75 61 67 65 73 |ropean l|anguages|
|000009c0| 2e 20 54 68 69 73 20 65 | 6e 63 6f 64 69 6e 67 20 |. This e|ncoding |
|000009d0| 69 73 20 61 6c 73 6f 20 | 74 68 65 0a 70 72 65 66 |is also |the.pref|
|000009e0| 65 72 72 65 64 20 65 6e | 63 6f 64 69 6e 67 20 6f |erred en|coding o|
|000009f0| 6e 20 74 68 65 20 49 6e | 74 65 72 6e 65 74 2e 20 |n the In|ternet. |
|00000a00| 20 49 53 4f 20 38 38 35 | 39 2d 58 20 63 68 61 72 | ISO 885|9-X char|
|00000a10| 61 63 74 65 72 20 73 65 | 74 73 20 75 73 65 20 74 |acter se|ts use t|
|00000a20| 68 65 0a 63 68 61 72 61 | 63 74 65 72 73 20 30 78 |he.chara|cters 0x|
|00000a30| 61 30 20 74 68 72 6f 75 | 67 68 20 30 78 66 66 20 |a0 throu|gh 0xff |
|00000a40| 74 6f 20 72 65 70 72 65 | 73 65 6e 74 20 6e 61 74 |to repre|sent nat|
|00000a50| 69 6f 6e 61 6c 20 63 68 | 61 72 61 63 74 65 72 73 |ional ch|aracters|
|00000a60| 2c 20 77 68 69 6c 65 0a | 74 68 65 20 63 68 61 72 |, while.|the char|
|00000a70| 61 63 74 65 72 73 20 69 | 6e 20 74 68 65 20 30 78 |acters i|n the 0x|
|00000a80| 32 30 2d 30 78 37 66 20 | 72 61 6e 67 65 20 61 72 |20-0x7f |range ar|
|00000a90| 65 20 74 68 6f 73 65 20 | 75 73 65 64 20 69 6e 20 |e those |used in |
|00000aa0| 74 68 65 20 55 53 2d 41 | 53 43 49 49 0a 28 49 53 |the US-A|SCII.(IS|
|00000ab0| 4f 20 36 34 36 29 20 63 | 68 61 72 61 63 74 65 72 |O 646) c|haracter|
|00000ac0| 20 73 65 74 2e 20 20 54 | 68 75 73 2c 20 41 53 43 | set. T|hus, ASC|
|00000ad0| 49 49 20 74 65 78 74 20 | 69 73 20 61 20 70 72 6f |II text |is a pro|
|00000ae0| 70 65 72 20 73 75 62 73 | 65 74 20 6f 66 20 61 6c |per subs|et of al|
|00000af0| 6c 0a 49 53 4f 20 38 38 | 35 39 2d 58 20 63 68 61 |l.ISO 88|59-X cha|
|00000b00| 72 61 63 74 65 72 20 73 | 65 74 73 2e 20 20 0a 0a |racter s|ets. ..|
|00000b10| 54 68 65 20 63 68 61 72 | 61 63 74 65 72 73 20 30 |The char|acters 0|
|00000b20| 78 38 30 20 74 68 72 6f | 75 67 68 20 30 78 39 66 |x80 thro|ugh 0x9f|
|00000b30| 20 61 72 65 20 65 61 72 | 6d 61 72 6b 65 64 20 61 | are ear|marked a|
|00000b40| 73 20 65 78 74 65 6e 64 | 65 64 20 63 6f 6e 74 72 |s extend|ed contr|
|00000b50| 6f 6c 0a 63 68 72 61 63 | 74 65 72 73 2c 20 61 6e |ol.chrac|ters, an|
|00000b60| 64 20 61 72 65 20 6e 6f | 74 20 75 73 65 64 20 66 |d are no|t used f|
|00000b70| 6f 72 20 65 6e 63 6f 64 | 69 6e 67 20 63 68 61 72 |or encod|ing char|
|00000b80| 61 63 74 65 72 73 2e 20 | 20 54 68 65 73 65 20 63 |acters. | These c|
|00000b90| 68 61 72 61 63 74 65 72 | 73 0a 61 72 65 20 6e 6f |haracter|s.are no|
|00000ba0| 74 20 63 75 72 72 65 6e | 74 6c 79 20 75 73 65 64 |t curren|tly used|
|00000bb0| 20 74 6f 20 73 70 65 63 | 69 66 79 20 61 6e 79 74 | to spec|ify anyt|
|00000bc0| 68 69 6e 67 2e 20 20 41 | 20 70 72 61 63 74 69 63 |hing. A| practic|
|00000bd0| 61 6c 20 72 65 61 73 6f | 6e 20 66 6f 72 0a 74 68 |al reaso|n for.th|
|00000be0| 69 73 20 69 73 20 69 6e | 74 65 72 6f 70 65 72 61 |is is in|teropera|
|00000bf0| 62 69 6c 69 74 79 20 77 | 69 74 68 20 37 20 62 69 |bility w|ith 7 bi|
|00000c00| 74 20 64 65 76 69 63 65 | 73 20 28 6f 72 20 77 68 |t device|s (or wh|
|00000c10| 65 6e 20 74 68 65 20 38 | 74 68 20 62 69 74 20 67 |en the 8|th bit g|
|00000c20| 65 74 73 0a 73 74 72 69 | 70 70 65 64 20 62 79 20 |ets.stri|pped by |
|00000c30| 66 61 75 6c 74 79 20 73 | 6f 66 74 77 61 72 65 29 |faulty s|oftware)|
|00000c40| 2e 20 20 44 65 76 69 63 | 65 73 20 77 6f 75 6c 64 |. Devic|es would|
|00000c50| 20 74 68 65 6e 20 69 6e | 74 65 72 70 72 65 74 20 | then in|terpret |
|00000c60| 74 68 65 20 63 68 61 72 | 61 63 74 65 72 0a 61 73 |the char|acter.as|
|00000c70| 20 73 6f 6d 65 20 63 6f | 6e 74 72 6f 6c 20 63 68 | some co|ntrol ch|
|00000c80| 61 72 61 63 74 65 72 20 | 61 6e 64 20 70 75 74 20 |aracter |and put |
|00000c90| 74 68 65 20 64 65 76 69 | 63 65 20 69 6e 20 61 6e |the devi|ce in an|
|00000ca0| 20 75 6e 64 65 66 69 6e | 65 64 20 73 74 61 74 65 | undefin|ed state|
|00000cb0| 2e 0a 28 57 68 65 6e 20 | 74 68 65 20 38 74 68 20 |..(When |the 8th |
|00000cc0| 62 69 74 20 67 65 74 73 | 20 73 74 72 69 70 70 65 |bit gets| strippe|
|00000cd0| 64 20 66 72 6f 6d 20 74 | 68 65 20 63 68 61 72 61 |d from t|he chara|
|00000ce0| 63 74 65 72 73 20 61 74 | 20 30 78 61 30 20 74 6f |cters at| 0xa0 to|
|00000cf0| 20 30 78 66 66 2c 20 61 | 0a 77 72 6f 6e 67 20 63 | 0xff, a|.wrong c|
|00000d00| 68 61 72 61 63 74 65 72 | 20 69 73 20 72 65 70 72 |haracter| is repr|
|00000d10| 65 73 65 6e 74 65 64 2c | 20 62 75 74 20 74 68 69 |esented,| but thi|
|00000d20| 73 20 63 61 6e 6e 6f 74 | 20 63 68 61 6e 67 65 20 |s cannot| change |
|00000d30| 74 68 65 20 73 74 61 74 | 65 20 6f 66 20 61 0a 74 |the stat|e of a.t|
|00000d40| 65 72 6d 69 6e 61 6c 20 | 6f 72 20 6f 74 68 65 72 |erminal |or other|
|00000d50| 20 64 65 76 69 63 65 2e | 29 0a 0a 54 68 69 73 20 | device.|)..This |
|00000d60| 63 68 61 72 61 63 74 65 | 72 20 73 65 74 20 69 73 |characte|r set is|
|00000d70| 20 61 6c 73 6f 20 75 73 | 65 64 20 62 79 20 41 6d | also us|ed by Am|
|00000d80| 69 67 61 44 4f 53 2c 20 | 4d 53 2d 57 69 6e 64 6f |igaDOS, |MS-Windo|
|00000d90| 77 73 2c 20 56 4d 53 20 | 28 44 45 43 20 4d 43 53 |ws, VMS |(DEC MCS|
|00000da0| 0a 69 73 20 70 72 61 63 | 74 69 63 61 6c 6c 79 20 |.is prac|tically |
|00000db0| 65 71 75 69 76 61 6c 65 | 6e 74 20 74 6f 20 49 53 |equivale|nt to IS|
|00000dc0| 4f 20 38 38 35 39 2d 31 | 29 20 61 6e 64 20 28 70 |O 8859-1|) and (p|
|00000dd0| 72 61 63 74 69 63 61 6c | 6c 79 20 61 6c 6c 29 20 |ractical|ly all) |
|00000de0| 55 4e 49 58 0a 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |UNIX.imp|lementat|
|00000df0| 69 6f 6e 73 2e 20 20 4d | 53 2d 44 4f 53 20 6e 6f |ions. M|S-DOS no|
|00000e00| 72 6d 61 6c 6c 79 20 75 | 73 65 73 20 61 20 64 69 |rmally u|ses a di|
|00000e10| 66 66 65 72 65 6e 74 20 | 63 68 61 72 61 63 74 65 |fferent |characte|
|00000e20| 72 20 73 65 74 20 61 6e | 64 0a 69 73 20 6e 6f 74 |r set an|d.is not|
|00000e30| 20 63 6f 6d 70 61 74 69 | 62 6c 65 20 77 69 74 68 | compati|ble with|
|00000e40| 20 74 68 69 73 20 63 68 | 61 72 61 63 74 65 72 20 | this ch|aracter |
|00000e50| 73 65 74 2e 20 28 49 74 | 20 63 61 6e 2c 20 68 6f |set. (It| can, ho|
|00000e60| 77 65 76 65 72 2c 20 62 | 65 0a 74 72 61 6e 73 6c |wever, b|e.transl|
|00000e70| 61 74 65 64 20 74 6f 20 | 74 68 69 73 20 66 6f 72 |ated to |this for|
|00000e80| 6d 61 74 20 77 69 74 68 | 20 76 61 72 69 6f 75 73 |mat with| various|
|00000e90| 20 74 6f 6f 6c 73 2e 20 | 53 65 65 20 73 65 63 74 | tools. |See sect|
|00000ea0| 69 6f 6e 20 35 2e 29 0a | 0a 46 6f 6f 74 6e 6f 74 |ion 5.).|.Footnot|
|00000eb0| 65 3a 20 53 75 70 70 6f | 73 65 64 6c 79 2c 20 49 |e: Suppo|sedly, I|
|00000ec0| 42 4d 20 63 6f 64 65 20 | 70 61 67 65 20 38 31 39 |BM code |page 819|
|00000ed0| 20 69 73 20 66 75 6c 6c | 79 20 49 53 4f 20 38 38 | is full|y ISO 88|
|00000ee0| 35 39 2d 31 20 63 6f 6d | 70 6c 69 61 6e 74 2e 0a |59-1 com|pliant..|
|00000ef0| 0a 0a 49 53 4f 20 38 38 | 35 39 2d 31 20 73 75 70 |..ISO 88|59-1 sup|
|00000f00| 70 6f 72 74 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |ports th|e follow|
|00000f10| 69 6e 67 20 6c 61 6e 67 | 75 61 67 65 73 3a 0a 41 |ing lang|uages:.A|
|00000f20| 66 72 69 6b 61 61 6e 73 | 2c 20 42 61 73 71 75 65 |frikaans|, Basque|
|00000f30| 2c 20 43 61 74 61 6c 61 | 6e 2c 20 44 61 6e 69 73 |, Catala|n, Danis|
|00000f40| 68 2c 20 44 75 74 63 68 | 2c 20 45 6e 67 6c 69 73 |h, Dutch|, Englis|
|00000f50| 68 2c 20 46 61 65 72 6f | 65 73 65 2c 20 46 69 6e |h, Faero|ese, Fin|
|00000f60| 6e 69 73 68 2c 0a 46 72 | 65 6e 63 68 2c 20 47 61 |nish,.Fr|ench, Ga|
|00000f70| 6c 69 63 69 61 6e 2c 20 | 47 65 72 6d 61 6e 2c 20 |lician, |German, |
|00000f80| 49 63 65 6c 61 6e 64 69 | 63 2c 20 49 72 69 73 68 |Icelandi|c, Irish|
|00000f90| 2c 20 49 74 61 6c 69 61 | 6e 2c 20 4e 6f 72 77 65 |, Italia|n, Norwe|
|00000fa0| 67 69 61 6e 2c 0a 50 6f | 72 74 75 67 75 65 73 65 |gian,.Po|rtuguese|
|00000fb0| 2c 20 53 70 61 6e 69 73 | 68 20 61 6e 64 20 53 77 |, Spanis|h and Sw|
|00000fc0| 65 64 69 73 68 2e 0a 0a | 28 49 74 20 68 61 73 20 |edish...|(It has |
|00000fd0| 62 65 65 6e 20 63 61 6c | 6c 65 64 20 74 6f 20 6d |been cal|led to m|
|00000fe0| 79 20 61 74 74 65 6e 74 | 69 6f 6e 20 74 68 61 74 |y attent|ion that|
|00000ff0| 20 41 6c 62 61 6e 69 61 | 6e 20 63 61 6e 20 62 65 | Albania|n can be|
|00001000| 20 77 72 69 74 74 65 6e | 20 77 69 74 68 0a 49 53 | written| with.IS|
|00001010| 4f 20 38 38 35 39 2d 31 | 20 61 6c 73 6f 2e 20 20 |O 8859-1| also. |
|00001020| 48 6f 77 65 76 65 72 2c | 20 66 72 6f 6d 20 61 20 |However,| from a |
|00001030| 73 74 61 6e 64 61 72 64 | 73 20 70 6f 69 6e 74 20 |standard|s point |
|00001040| 6f 66 20 76 69 65 77 2c | 20 49 53 4f 20 38 38 35 |of view,| ISO 885|
|00001050| 39 2d 32 0a 69 73 20 74 | 68 65 20 61 70 70 72 6f |9-2.is t|he appro|
|00001060| 70 72 69 61 74 65 20 63 | 68 61 72 61 63 74 65 72 |priate c|haracter|
|00001070| 20 73 65 74 20 66 6f 72 | 20 42 61 6c 6b 61 6e 20 | set for| Balkan |
|00001080| 63 6f 75 6e 74 72 69 65 | 73 2e 29 0a 0a 49 53 4f |countrie|s.)..ISO|
|00001090| 20 38 38 35 39 2d 31 20 | 69 73 20 6a 75 73 74 20 | 8859-1 |is just |
|000010a0| 6f 6e 65 20 70 61 72 74 | 20 6f 66 20 74 68 65 20 |one part| of the |
|000010b0| 49 53 4f 2d 38 38 35 39 | 20 73 74 61 6e 64 61 72 |ISO-8859| standar|
|000010c0| 64 2c 20 77 68 69 63 68 | 20 73 70 65 63 69 66 69 |d, which| specifi|
|000010d0| 65 73 0a 73 65 76 65 72 | 61 6c 20 63 68 61 72 61 |es.sever|al chara|
|000010e0| 63 74 65 72 20 73 65 74 | 73 3a 0a 38 38 35 39 2d |cter set|s:.8859-|
|000010f0| 31 09 45 75 72 6f 70 65 | 2c 20 4c 61 74 69 6e 20 |1.Europe|, Latin |
|00001100| 41 6d 65 72 69 63 61 0a | 38 38 35 39 2d 32 20 20 |America.|8859-2 |
|00001110| 45 61 73 74 65 72 6e 20 | 45 75 72 6f 70 65 0a 38 |Eastern |Europe.8|
|00001120| 38 35 39 2d 33 20 20 53 | 45 20 45 75 72 6f 70 65 |859-3 S|E Europe|
|00001130| 2f 6d 69 73 63 65 6c 6c | 61 6e 65 6f 75 73 20 28 |/miscell|aneous (|
|00001140| 45 73 70 65 72 61 6e 74 | 6f 2c 20 4d 61 6c 74 65 |Esperant|o, Malte|
|00001150| 73 65 2c 20 65 74 63 2e | 29 20 0a 38 38 35 39 2d |se, etc.|) .8859-|
|00001160| 34 20 20 53 63 61 6e 64 | 69 6e 61 76 69 61 2f 42 |4 Scand|inavia/B|
|00001170| 61 6c 74 69 63 20 28 6d | 6f 73 74 6c 79 20 63 6f |altic (m|ostly co|
|00001180| 76 65 72 65 64 20 62 79 | 20 38 38 35 39 2d 31 20 |vered by| 8859-1 |
|00001190| 61 6c 73 6f 29 0a 38 38 | 35 39 2d 35 20 20 43 79 |also).88|59-5 Cy|
|000011a0| 72 69 6c 6c 69 63 0a 38 | 38 35 39 2d 36 20 20 41 |rillic.8|859-6 A|
|000011b0| 72 61 62 69 63 0a 38 38 | 35 39 2d 37 20 20 47 72 |rabic.88|59-7 Gr|
|000011c0| 65 65 6b 20 0a 38 38 35 | 39 2d 38 20 20 48 65 62 |eek .885|9-8 Heb|
|000011d0| 72 65 77 0a 38 38 35 39 | 2d 39 20 20 4c 61 74 69 |rew.8859|-9 Lati|
|000011e0| 6e 35 2c 20 73 61 6d 65 | 20 61 73 20 38 38 35 39 |n5, same| as 8859|
|000011f0| 2d 31 20 65 78 63 65 70 | 74 20 66 6f 72 20 54 75 |-1 excep|t for Tu|
|00001200| 72 6b 69 73 68 20 69 6e | 73 74 65 61 64 20 6f 66 |rkish in|stead of|
|00001210| 20 49 63 65 6c 61 6e 64 | 69 63 0a 38 38 35 39 2d | Iceland|ic.8859-|
|00001220| 31 30 20 4c 61 74 69 6e | 36 2c 20 66 6f 72 20 4c |10 Latin|6, for L|
|00001230| 61 70 70 69 73 68 2f 4e | 6f 72 64 69 63 2f 45 73 |appish/N|ordic/Es|
|00001240| 6b 69 6d 6f 20 6c 61 6e | 67 75 61 67 65 73 0a 0a |kimo lan|guages..|
|00001250| 41 6e 6f 74 68 65 72 20 | 6e 61 73 63 65 6e 74 20 |Another |nascent |
|00001260| 73 74 61 6e 64 61 72 64 | 20 69 73 20 55 4e 49 43 |standard| is UNIC|
|00001270| 4f 44 45 20 28 49 53 4f | 20 31 30 36 34 36 29 2e |ODE (ISO| 10646).|
|00001280| 20 20 55 4e 49 43 4f 44 | 45 20 69 73 20 61 6e 0a | UNICOD|E is an.|
|00001290| 65 78 74 65 6e 73 69 6f | 6e 20 6f 66 20 49 53 4f |extensio|n of ISO|
|000012a0| 20 38 38 35 39 2d 31 20 | 28 77 68 69 63 68 20 69 | 8859-1 |(which i|
|000012b0| 74 73 65 6c 66 20 69 73 | 20 61 6e 20 65 78 74 65 |tself is| an exte|
|000012c0| 6e 73 69 6f 6e 20 6f 66 | 20 55 53 2d 41 53 43 49 |nsion of| US-ASCI|
|000012d0| 49 29 20 74 6f 0a 77 69 | 64 65 20 63 68 61 72 61 |I) to.wi|de chara|
|000012e0| 63 74 65 72 73 2e 20 20 | 54 68 75 73 2c 20 6d 6f |cters. |Thus, mo|
|000012f0| 73 74 20 6f 66 20 74 68 | 65 20 77 6f 72 6c 64 27 |st of th|e world'|
|00001300| 73 20 6c 61 6e 67 75 61 | 67 65 73 20 28 69 6e 63 |s langua|ges (inc|
|00001310| 6c 75 64 69 6e 67 0a 4a | 61 70 61 6e 65 73 65 2c |luding.J|apanese,|
|00001320| 20 4b 6f 72 65 61 6e 2c | 20 43 68 69 6e 65 73 65 | Korean,| Chinese|
|00001330| 2e 2e 2e 29 20 63 61 6e | 20 62 65 20 63 6f 76 65 |...) can| be cove|
|00001340| 72 65 64 2e 0a 0a 55 6e | 69 63 6f 64 65 20 69 73 |red...Un|icode is|
|00001350| 20 61 64 76 61 6e 74 61 | 67 65 6f 75 73 20 62 65 | advanta|geous be|
|00001360| 63 61 75 73 65 20 6f 6e | 65 20 63 68 61 72 61 63 |cause on|e charac|
|00001370| 74 65 72 20 73 65 74 20 | 73 75 66 66 69 63 65 73 |ter set |suffices|
|00001380| 20 74 6f 20 65 6e 63 6f | 64 65 0a 61 6c 6c 20 74 | to enco|de.all t|
|00001390| 68 65 20 77 6f 72 6c 64 | 27 73 20 6c 61 6e 67 75 |he world|'s langu|
|000013a0| 61 67 65 73 2e 20 20 54 | 68 65 20 64 65 67 72 65 |ages. T|he degre|
|000013b0| 65 20 6f 66 20 55 6e 69 | 63 6f 64 65 20 73 75 70 |e of Uni|code sup|
|000013c0| 70 6f 72 74 20 61 76 61 | 69 6c 61 62 6c 65 0a 64 |port ava|ilable.d|
|000013d0| 65 70 65 6e 64 73 20 6f | 6e 20 74 68 65 20 6f 70 |epends o|n the op|
|000013e0| 65 72 61 74 69 6e 67 20 | 73 79 73 74 65 6d 20 61 |erating |system a|
|000013f0| 6e 64 20 6f 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |nd on ap|plicatio|
|00001400| 6e 20 61 76 61 69 6c 61 | 62 69 6c 69 74 79 2e 20 |n availa|bility. |
|00001410| 0a 48 6f 77 65 76 65 72 | 20 76 65 72 79 20 66 65 |.However| very fe|
|00001420| 77 20 70 72 6f 67 72 61 | 6d 73 20 73 75 70 70 6f |w progra|ms suppo|
|00001430| 72 74 20 77 69 64 65 20 | 63 68 61 72 61 63 74 65 |rt wide |characte|
|00001440| 72 73 2e 20 54 68 75 73 | 2c 20 61 20 60 63 68 65 |rs. Thus|, a `che|
|00001450| 61 70 27 0a 75 70 67 72 | 61 64 65 20 66 72 6f 6d |ap'.upgr|ade from|
|00001460| 20 37 20 62 69 74 20 55 | 53 2d 41 53 43 49 49 20 | 7 bit U|S-ASCII |
|00001470| 6d 69 67 68 74 20 62 65 | 20 74 6f 20 6f 6e 6c 79 |might be| to only|
|00001480| 20 38 20 62 69 74 20 77 | 69 64 65 20 63 68 61 72 | 8 bit w|ide char|
|00001490| 61 63 74 65 72 20 73 65 | 74 73 0a 28 73 75 63 68 |acter se|ts.(such|
|000014a0| 20 61 73 20 74 68 65 20 | 49 53 4f 20 38 38 35 39 | as the |ISO 8859|
|000014b0| 2d 58 29 2e 20 20 55 6e | 66 6f 72 74 75 6e 61 74 |-X). Un|fortunat|
|000014c0| 65 6c 79 2c 20 73 6f 6d | 65 20 70 72 6f 67 72 61 |ely, som|e progra|
|000014d0| 6d 6d 65 72 73 20 73 74 | 69 6c 6c 0a 69 6e 73 69 |mmers st|ill.insi|
|000014e0| 73 74 20 6f 6e 20 75 73 | 69 6e 67 20 74 68 65 20 |st on us|ing the |
|000014f0| 60 73 70 61 72 65 27 20 | 65 69 67 74 68 20 62 69 |`spare' |eigth bi|
|00001500| 74 20 66 6f 72 20 63 6c | 65 76 65 72 20 74 72 69 |t for cl|ever tri|
|00001510| 63 6b 73 2c 20 77 68 69 | 63 68 20 77 69 6c 6c 0a |cks, whi|ch will.|
|00001520| 6d 61 6b 65 20 63 6f 6e | 76 65 72 73 69 6f 6e 20 |make con|version |
|00001530| 6d 6f 72 65 20 64 69 66 | 66 69 63 75 6c 74 2e 0a |more dif|ficult..|
|00001540| 0a 46 6f 6f 74 6e 6f 74 | 65 3a 20 53 6f 6d 65 20 |.Footnot|e: Some |
|00001550| 70 65 6f 70 6c 65 20 68 | 61 76 65 20 63 6f 6d 70 |people h|ave comp|
|00001560| 6c 61 69 6e 65 64 20 61 | 62 6f 75 74 20 6d 69 73 |lained a|bout mis|
|00001570| 73 69 6e 67 20 63 68 61 | 72 61 63 74 65 72 73 2c |sing cha|racters,|
|00001580| 0a 20 20 20 20 20 20 20 | 20 20 20 65 2e 67 2e 20 |. | e.g. |
|00001590| 46 72 65 6e 63 68 20 75 | 73 65 72 73 20 61 62 6f |French u|sers abo|
|000015a0| 75 74 20 61 20 6d 69 73 | 73 69 6e 67 20 27 6f 65 |ut a mis|sing 'oe|
|000015b0| 27 2e 20 20 4e 6f 74 65 | 20 74 68 61 74 20 6f 65 |'. Note| that oe|
|000015c0| 20 69 73 20 0a 20 20 20 | 20 20 20 20 20 20 20 6e | is . | n|
|000015d0| 6f 74 20 61 20 63 68 61 | 72 61 63 74 65 72 2c 20 |ot a cha|racter, |
|000015e0| 62 75 74 20 61 20 6c 69 | 67 61 74 75 72 65 20 28 |but a li|gature (|
|000015f0| 61 20 63 6f 6d 62 69 6e | 61 74 69 6f 6e 20 6f 66 |a combin|ation of|
|00001600| 20 74 77 6f 0a 20 20 20 | 20 20 20 20 20 20 20 63 | two. | c|
|00001610| 68 61 72 61 63 74 65 72 | 73 20 66 6f 72 20 74 79 |haracter|s for ty|
|00001620| 70 6f 67 72 61 70 68 69 | 63 61 6c 20 70 75 72 70 |pographi|cal purp|
|00001630| 6f 73 65 73 29 2e 20 20 | 4c 69 67 61 74 75 72 65 |oses). |Ligature|
|00001640| 73 20 61 72 65 20 6e 6f | 74 20 0a 20 20 20 20 20 |s are no|t . |
|00001650| 20 20 20 20 20 70 61 72 | 74 20 6f 66 20 74 68 65 | par|t of the|
|00001660| 20 49 53 4f 20 38 38 35 | 39 2d 58 20 73 74 61 6e | ISO 885|9-X stan|
|00001670| 64 61 72 64 2e 20 20 28 | 41 6c 74 68 6f 75 67 68 |dard. (|Although|
|00001680| 20 27 6f 65 27 20 75 73 | 65 64 20 74 6f 20 0a 20 | 'oe' us|ed to . |
|00001690| 20 20 20 20 20 20 20 20 | 20 62 65 20 69 6e 20 74 | | be in t|
|000016a0| 68 65 20 64 72 61 66 74 | 20 38 38 35 39 2d 31 20 |he draft| 8859-1 |
|000016b0| 73 74 61 6e 64 61 72 64 | 20 62 65 66 6f 72 65 20 |standard| before |
|000016c0| 69 74 20 77 61 73 20 75 | 6e 6d 61 73 6b 65 64 20 |it was u|nmasked |
|000016d0| 61 73 0a 20 20 20 20 20 | 20 20 20 20 20 60 6d 65 |as. | `me|
|000016e0| 72 65 27 20 6c 69 67 61 | 74 75 72 65 2e 29 0a 0a |re' liga|ture.)..|
|000016f0| 0a 0a 0a 32 2e 20 43 68 | 6f 6f 73 69 6e 67 20 74 |...2. Ch|oosing t|
|00001700| 68 65 20 63 68 61 72 61 | 63 74 65 72 20 73 65 74 |he chara|cter set|
|00001710| 20 65 6e 63 6f 64 69 6e | 67 0a 0a 44 65 70 65 6e | encodin|g..Depen|
|00001720| 64 69 6e 67 20 6f 6e 20 | 79 6f 75 72 20 6e 65 65 |ding on |your nee|
|00001730| 64 73 2c 20 79 6f 75 20 | 77 69 6c 6c 20 70 72 6f |ds, you |will pro|
|00001740| 62 61 62 6c 79 20 77 61 | 6e 74 20 74 6f 20 63 68 |bably wa|nt to ch|
|00001750| 6f 6f 73 65 20 64 69 66 | 66 65 72 65 6e 74 0a 73 |oose dif|ferent.s|
|00001760| 6f 6c 75 74 69 6f 6e 73 | 2e 20 20 41 20 71 75 69 |olutions|. A qui|
|00001770| 63 6b 20 73 68 6f 74 20 | 69 31 38 6e 20 6f 66 20 |ck shot |i18n of |
|00001780| 55 53 20 70 72 6f 67 72 | 61 6d 73 20 6d 69 67 68 |US progr|ams migh|
|00001790| 74 20 73 69 6d 70 6c 79 | 20 62 65 20 67 6f 69 6e |t simply| be goin|
|000017a0| 67 20 74 6f 0a 38 20 62 | 69 74 20 61 6e 64 20 75 |g to.8 b|it and u|
|000017b0| 73 65 20 6f 6e 65 20 6f | 66 20 74 68 65 20 49 53 |se one o|f the IS|
|000017c0| 4f 20 38 38 35 39 2d 58 | 20 63 68 61 72 61 63 74 |O 8859-X| charact|
|000017d0| 65 72 20 73 65 74 73 2e | 0a 0a 49 66 20 79 6f 75 |er sets.|..If you|
|000017e0| 20 68 61 76 65 20 61 20 | 63 68 6f 69 63 65 20 61 | have a |choice a|
|000017f0| 6e 64 20 73 74 61 72 74 | 20 66 72 6f 6d 20 73 63 |nd start| from sc|
|00001800| 72 61 74 63 68 2c 20 79 | 6f 75 20 6d 69 67 68 74 |ratch, y|ou might|
|00001810| 20 77 61 6e 74 20 74 6f | 0a 63 6f 6e 73 69 64 65 | want to|.conside|
|00001820| 72 20 55 6e 69 63 6f 64 | 65 2e 20 20 54 68 65 72 |r Unicod|e. Ther|
|00001830| 65 20 61 72 65 20 73 65 | 76 65 72 61 6c 20 61 73 |e are se|veral as|
|00001840| 70 65 63 74 73 20 74 6f | 20 63 68 6f 6f 73 69 6e |pects to| choosin|
|00001850| 67 20 61 20 70 61 72 74 | 69 63 75 6c 61 72 0a 63 |g a part|icular.c|
|00001860| 68 61 72 61 63 74 65 72 | 20 73 65 74 20 28 61 6e |haracter| set (an|
|00001870| 64 20 79 6f 75 20 6d 61 | 79 20 77 61 6e 74 20 74 |d you ma|y want t|
|00001880| 6f 20 64 65 63 69 64 65 | 20 6f 6e 20 64 69 66 66 |o decide| on diff|
|00001890| 65 72 65 6e 74 20 63 68 | 61 72 61 63 74 65 72 20 |erent ch|aracter |
|000018a0| 73 65 74 73 0a 66 6f 72 | 20 64 69 66 66 65 72 65 |sets.for| differe|
|000018b0| 6e 74 20 70 75 72 70 6f | 73 65 73 29 3a 0a 31 29 |nt purpo|ses):.1)|
|000018c0| 20 77 68 61 74 20 63 6f | 64 65 73 65 74 20 73 68 | what co|deset sh|
|000018d0| 6f 75 6c 64 20 74 68 65 | 20 61 70 70 6c 69 63 61 |ould the| applica|
|000018e0| 74 69 6f 6e 20 72 75 6e | 20 69 6e 3f 20 20 0a 32 |tion run| in? .2|
|000018f0| 29 20 77 68 61 74 20 63 | 6f 64 65 73 65 74 20 73 |) what c|odeset s|
|00001900| 68 6f 75 6c 64 20 66 69 | 6c 65 73 20 62 65 20 73 |hould fi|les be s|
|00001910| 61 76 65 64 20 69 6e 20 | 0a 33 29 20 77 68 61 74 |aved in |.3) what|
|00001920| 20 63 6f 64 65 73 65 74 | 20 69 73 20 75 73 65 64 | codeset| is used|
|00001930| 20 61 73 20 6f 75 74 70 | 75 74 20 28 74 6f 20 73 | as outp|ut (to s|
|00001940| 63 72 65 65 6e 73 20 65 | 74 63 2e 29 20 61 6e 64 |creens e|tc.) and|
|00001950| 20 0a 34 29 20 73 68 6f | 75 6c 64 20 77 69 64 65 | .4) sho|uld wide|
|00001960| 20 63 68 61 72 61 63 74 | 65 72 73 20 6f 72 20 6d | charact|ers or m|
|00001970| 75 6c 74 69 2d 62 79 74 | 65 20 63 68 61 72 61 63 |ulti-byt|e charac|
|00001980| 74 65 72 73 20 62 65 20 | 75 73 65 64 20 28 74 68 |ters be |used (th|
|00001990| 69 73 0a 20 20 20 63 68 | 6f 69 63 65 20 6d 61 79 |is. ch|oice may|
|000019a0| 20 62 65 20 64 69 66 66 | 65 72 65 6e 74 20 66 6f | be diff|erent fo|
|000019b0| 72 20 65 61 63 68 20 6f | 66 20 70 6f 69 6e 74 73 |r each o|f points|
|000019c0| 20 31 2d 33 29 0a 0a 46 | 6f 72 20 65 78 61 6d 70 | 1-3)..F|or examp|
|000019d0| 6c 65 2c 20 69 66 20 70 | 6f 72 74 61 62 69 6c 69 |le, if p|ortabili|
|000019e0| 74 79 20 6f 66 20 79 6f | 75 72 20 66 69 6c 65 73 |ty of yo|ur files|
|000019f0| 20 61 63 72 6f 73 73 20 | 63 75 6c 74 75 72 61 6c | across |cultural|
|00001a00| 20 62 6f 72 64 65 72 73 | 20 69 73 0a 61 6e 20 6f | borders| is.an o|
|00001a10| 62 6a 65 63 74 69 76 65 | 2c 20 79 6f 75 20 6d 69 |bjective|, you mi|
|00001a20| 67 68 74 20 77 61 6e 74 | 20 74 6f 20 75 73 65 20 |ght want| to use |
|00001a30| 73 6f 6d 65 20 66 6f 72 | 6d 20 6f 66 20 55 6e 69 |some for|m of Uni|
|00001a40| 63 6f 64 65 20 65 6e 63 | 6f 64 69 6e 67 20 74 6f |code enc|oding to|
|00001a50| 0a 61 63 68 69 65 76 65 | 20 74 68 69 73 2e 20 20 |.achieve| this. |
|00001a60| 49 66 20 69 6e 74 65 72 | 61 63 74 69 6f 6e 20 77 |If inter|action w|
|00001a70| 69 74 68 20 6f 74 68 65 | 72 20 74 6f 6f 6c 73 20 |ith othe|r tools |
|00001a80| 69 6e 20 79 6f 75 72 20 | 65 6e 76 69 72 6f 6e 6d |in your |environm|
|00001a90| 65 6e 74 20 69 73 0a 74 | 68 65 20 6d 61 69 6e 20 |ent is.t|he main |
|00001aa0| 6f 62 6a 65 63 74 69 76 | 65 2c 20 61 6e 64 20 74 |objectiv|e, and t|
|00001ab0| 68 65 73 65 20 74 6f 6f | 6c 73 20 75 73 65 20 61 |hese too|ls use a|
|00001ac0| 6e 20 65 6e 63 6f 64 69 | 6e 67 20 64 69 66 66 65 |n encodi|ng diffe|
|00001ad0| 72 65 6e 74 20 66 72 6f | 6d 0a 55 6e 69 63 6f 64 |rent fro|m.Unicod|
|00001ae0| 65 2c 20 74 68 69 73 20 | 63 68 61 72 61 63 74 65 |e, this |characte|
|00001af0| 72 20 73 65 74 20 6d 69 | 67 68 74 20 62 65 20 75 |r set mi|ght be u|
|00001b00| 73 65 64 20 69 6e 73 74 | 65 61 64 2e 20 20 0a 0a |sed inst|ead. ..|
|00001b10| 55 73 69 6e 67 20 55 6e | 69 63 6f 64 65 20 69 6e |Using Un|icode in|
|00001b20| 74 65 72 6e 61 6c 6c 79 | 20 62 75 74 20 77 72 69 |ternally| but wri|
|00001b30| 74 69 6e 67 20 61 20 64 | 69 66 66 65 72 65 6e 74 |ting a d|ifferent|
|00001b40| 20 66 6f 72 6d 61 74 20 | 74 6f 20 66 69 6c 65 73 | format |to files|
|00001b50| 20 6d 61 79 0a 73 6f 75 | 6e 64 20 66 75 6e 6e 79 | may.sou|nd funny|
|00001b60| 20 28 65 73 70 2e 20 69 | 66 20 74 68 65 20 6f 75 | (esp. i|f the ou|
|00001b70| 74 70 75 74 20 66 69 6c | 65 20 66 6f 72 6d 61 74 |tput fil|e format|
|00001b80| 20 69 73 20 6f 6e 6c 79 | 20 61 20 73 75 62 73 65 | is only| a subse|
|00001b90| 74 20 6f 66 0a 55 6e 69 | 63 6f 64 65 29 2c 20 62 |t of.Uni|code), b|
|00001ba0| 75 74 20 79 6f 75 20 77 | 6f 75 6c 64 20 6f 6e 6c |ut you w|ould onl|
|00001bb0| 79 20 68 61 76 65 20 74 | 6f 20 61 64 61 70 74 20 |y have t|o adapt |
|00001bc0| 74 68 65 20 66 69 6c 65 | 20 77 72 69 74 65 20 61 |the file| write a|
|00001bd0| 6e 64 20 72 65 61 64 0a | 66 75 6e 63 74 69 6f 6e |nd read.|function|
|00001be0| 73 20 61 6e 64 20 74 68 | 65 20 73 61 6d 65 20 70 |s and th|e same p|
|00001bf0| 72 6f 67 72 61 6d 20 77 | 69 6c 6c 20 62 65 20 61 |rogram w|ill be a|
|00001c00| 62 6c 65 20 74 6f 20 65 | 78 65 63 75 74 65 20 69 |ble to e|xecute i|
|00001c10| 6e 20 61 6c 6c 0a 63 6f | 75 6e 74 72 69 65 73 20 |n all.co|untries |
|00001c20| 79 6f 75 72 20 70 72 6f | 64 75 63 74 20 6d 69 67 |your pro|duct mig|
|00001c30| 68 74 20 62 65 20 75 73 | 65 64 2e 2e 2e 29 0a 0a |ht be us|ed...)..|
|00001c40| 41 6c 73 6f 2c 20 74 65 | 72 6d 69 6e 61 6c 73 20 |Also, te|rminals |
|00001c50| 61 6e 64 2f 6f 72 20 77 | 68 69 63 68 20 70 72 6f |and/or w|hich pro|
|00001c60| 63 65 73 73 20 55 6e 69 | 63 6f 64 65 20 6d 61 79 |cess Uni|code may|
|00001c70| 20 6e 6f 74 20 62 65 20 | 61 76 61 69 6c 61 62 6c | not be |availabl|
|00001c80| 65 20 28 6f 72 0a 79 6f | 75 20 6d 69 67 68 74 20 |e (or.yo|u might |
|00001c90| 68 61 76 65 20 74 6f 20 | 73 75 70 70 6f 72 74 20 |have to |support |
|00001ca0| 6c 65 67 61 63 79 20 68 | 61 72 64 77 61 72 65 29 |legacy h|ardware)|
|00001cb0| 2c 20 73 6f 20 79 6f 75 | 20 6d 69 67 68 74 20 6e |, so you| might n|
|00001cc0| 65 65 64 20 74 6f 20 61 | 64 61 70 74 0a 74 68 65 |eed to a|dapt.the|
|00001cd0| 20 6f 75 74 70 75 74 20 | 66 6f 72 6d 61 74 20 74 | output |format t|
|00001ce0| 6f 20 61 20 74 68 69 72 | 64 20 73 74 61 6e 64 61 |o a thir|d standa|
|00001cf0| 72 64 2e 0a 0a 0a 32 2e | 20 47 65 74 74 69 6e 67 |rd....2.| Getting|
|00001d00| 20 79 6f 75 72 20 65 6e | 76 69 72 6f 6e 6d 65 6e | your en|vironmen|
|00001d10| 74 20 72 69 67 68 74 20 | 66 6f 72 20 49 53 4f 20 |t right |for ISO |
|00001d20| 38 38 35 39 2d 58 0a 54 | 6f 20 63 6f 6e 66 69 67 |8859-X.T|o config|
|00001d30| 75 72 65 20 79 6f 75 72 | 20 65 6e 76 69 72 6f 6e |ure your| environ|
|00001d40| 6d 65 6e 74 20 73 75 63 | 68 20 74 68 61 74 20 79 |ment suc|h that y|
|00001d50| 6f 75 20 63 61 6e 20 65 | 6e 74 65 72 2c 20 70 72 |ou can e|nter, pr|
|00001d60| 6f 63 65 73 73 20 61 6e | 64 0a 64 69 73 70 6c 61 |ocess an|d.displa|
|00001d70| 79 20 38 20 62 69 74 20 | 49 53 4f 20 63 68 61 72 |y 8 bit |ISO char|
|00001d80| 61 63 74 65 72 73 2c 20 | 63 68 65 63 6b 20 6f 75 |acters, |check ou|
|00001d90| 74 20 74 68 65 20 49 53 | 4f 2d 38 38 35 39 2d 31 |t the IS|O-8859-1|
|00001da0| 20 46 41 51 20 61 76 61 | 69 6c 61 62 6c 65 0a 76 | FAQ ava|ilable.v|
|00001db0| 69 61 20 61 6e 6f 6e 79 | 6d 6f 75 73 20 66 74 70 |ia anony|mous ftp|
|00001dc0| 20 66 72 6f 6d 20 66 74 | 70 2e 76 6c 73 69 76 69 | from ft|p.vlsivi|
|00001dd0| 65 2e 74 75 77 69 65 6e | 2e 61 63 2e 61 74 20 69 |e.tuwien|.ac.at i|
|00001de0| 6e 0a 2f 70 75 62 2f 38 | 62 69 74 2f 46 41 51 2d |n./pub/8|bit/FAQ-|
|00001df0| 49 53 4f 2d 38 38 35 39 | 2d 31 2e 20 20 0a 0a 49 |ISO-8859|-1. ..I|
|00001e00| 66 20 79 6f 75 20 75 73 | 65 20 61 20 64 69 66 66 |f you us|e a diff|
|00001e10| 65 72 65 6e 74 20 65 6e | 63 6f 64 69 6e 67 2c 20 |erent en|coding, |
|00001e20| 79 6f 75 20 77 69 6c 6c | 20 70 72 6f 62 61 62 6c |you will| probabl|
|00001e30| 79 20 61 6c 73 6f 20 68 | 61 76 65 20 74 6f 0a 63 |y also h|ave to.c|
|00001e40| 6f 6e 66 69 67 75 72 65 | 20 79 6f 75 72 20 73 79 |onfigure| your sy|
|00001e50| 73 74 65 6d 20 74 6f 20 | 66 75 6c 6c 79 20 73 75 |stem to |fully su|
|00001e60| 70 70 6f 72 74 20 74 68 | 61 74 20 65 6e 63 6f 64 |pport th|at encod|
|00001e70| 69 6e 67 2e 0a 0a 0a 0a | 33 2e 20 53 65 74 74 69 |ing.....|3. Setti|
|00001e80| 6e 67 20 79 6f 75 72 20 | 65 6e 76 69 72 6f 6e 6d |ng your |environm|
|00001e90| 65 6e 74 20 66 6f 72 20 | 49 53 4f 2d 43 20 28 41 |ent for |ISO-C (A|
|00001ea0| 4e 53 49 2d 43 29 20 70 | 72 6f 67 72 61 6d 73 0a |NSI-C) p|rograms.|
|00001eb0| 54 68 65 20 49 53 4f 20 | 43 20 53 74 61 6e 64 61 |The ISO |C Standa|
|00001ec0| 72 64 20 28 41 4e 53 49 | 20 43 20 53 74 61 6e 64 |rd (ANSI| C Stand|
|00001ed0| 61 72 64 20 34 2e 34 29 | 20 64 65 66 69 6e 65 73 |ard 4.4)| defines|
|00001ee0| 20 73 65 76 65 72 61 6c | 20 66 75 6e 63 74 69 6f | several| functio|
|00001ef0| 6e 73 20 66 6f 72 0a 73 | 75 70 70 6f 72 74 69 6e |ns for.s|upportin|
|00001f00| 67 20 6c 6f 63 61 6c 69 | 7a 61 74 69 6f 6e 2e 20 |g locali|zation. |
|00001f10| 54 6f 20 73 65 74 20 79 | 6f 75 72 20 69 6e 74 65 |To set y|our inte|
|00001f20| 72 6e 61 74 69 6f 6e 61 | 6c 20 65 6e 76 69 72 6f |rnationa|l enviro|
|00001f30| 6e 6d 65 6e 74 20 6f 6e | 0a 70 72 6f 67 72 61 6d |nment on|.program|
|00001f40| 20 73 74 61 72 74 75 70 | 2c 20 79 6f 75 20 73 68 | startup|, you sh|
|00001f50| 6f 75 6c 64 20 6d 61 6b | 65 20 6f 6e 65 20 6f 72 |ould mak|e one or|
|00001f60| 20 73 65 76 65 72 61 6c | 20 63 61 6c 6c 73 20 74 | several| calls t|
|00001f70| 6f 20 74 68 65 20 73 65 | 74 6c 6f 63 61 6c 65 0a |o the se|tlocale.|
|00001f80| 66 75 6e 63 74 69 6f 6e | 73 2e 20 20 43 61 6c 6c |function|s. Call|
|00001f90| 73 20 74 6f 20 74 68 69 | 73 20 66 75 6e 63 74 69 |s to thi|s functi|
|00001fa0| 6f 6e 20 77 69 6c 6c 20 | 70 72 65 64 65 74 65 72 |on will |predeter|
|00001fb0| 6d 69 6e 65 20 74 68 65 | 20 72 65 61 63 74 69 6f |mine the| reactio|
|00001fc0| 6e 20 6f 66 0a 6f 74 68 | 65 72 20 6c 6f 63 61 6c |n of.oth|er local|
|00001fd0| 69 7a 61 74 69 6f 6e 20 | 66 75 6e 63 74 69 6f 6e |ization |function|
|00001fe0| 73 20 61 63 63 6f 72 64 | 69 6e 67 20 74 6f 20 79 |s accord|ing to y|
|00001ff0| 6f 75 72 20 6c 61 6e 67 | 75 61 67 65 2f 63 6f 75 |our lang|uage/cou|
|00002000| 6e 74 72 79 0a 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |ntry.env|ironment|
|00002010| 2e 0a 0a 54 6f 20 63 6f | 6e 66 69 67 75 72 65 20 |...To co|nfigure |
|00002020| 61 20 70 61 72 74 69 63 | 75 6c 61 72 20 61 73 70 |a partic|ular asp|
|00002030| 65 63 74 20 6f 66 20 79 | 6f 75 20 65 6e 76 69 72 |ect of y|ou envir|
|00002040| 6f 6e 6d 65 6e 74 2c 20 | 73 61 79 20 74 68 65 20 |onment, |say the |
|00002050| 6e 75 6d 62 65 72 0a 72 | 65 70 72 65 73 65 6e 74 |number.r|epresent|
|00002060| 61 74 69 6f 6e 2c 20 79 | 6f 75 20 77 6f 75 6c 64 |ation, y|ou would|
|00002070| 20 63 61 6c 6c 0a 2d 2d | 0a 73 65 74 6c 6f 63 61 | call.--|.setloca|
|00002080| 6c 65 20 28 4c 43 5f 4e | 55 4d 45 52 49 43 2c 20 |le (LC_N|UMERIC, |
|00002090| 22 47 65 72 6d 61 6e 79 | 22 29 3b 0a 2d 2d 0a 0a |"Germany|");.--..|
|000020a0| 54 68 69 73 20 63 61 6c | 6c 20 77 6f 75 6c 64 20 |This cal|l would |
|000020b0| 73 65 74 20 61 6c 6c 20 | 6e 75 6d 62 65 72 20 72 |set all |number r|
|000020c0| 65 70 72 65 73 65 6e 74 | 61 74 69 6f 6e 20 66 75 |epresent|ation fu|
|000020d0| 6e 63 74 69 6f 6e 73 20 | 64 65 66 69 6e 65 64 20 |nctions |defined |
|000020e0| 69 6e 20 74 68 65 0a 6c | 6f 63 61 6c 69 7a 61 74 |in the.l|ocalizat|
|000020f0| 69 6f 6e 20 73 65 74 20 | 74 6f 20 72 65 74 75 72 |ion set |to retur|
|00002100| 6e 20 6e 75 6d 62 65 72 | 73 20 69 6e 20 74 68 65 |n number|s in the|
|00002110| 20 66 6f 72 6d 61 74 20 | 75 73 65 64 20 69 6e 20 | format |used in |
|00002120| 47 65 72 6d 61 6e 79 2e | 20 20 49 66 0a 74 68 65 |Germany.| If.the|
|00002130| 20 63 61 6c 6c 20 77 61 | 73 20 73 75 63 63 65 73 | call wa|s succes|
|00002140| 73 66 75 6c 2c 20 73 65 | 74 6c 6f 63 61 6c 65 20 |sful, se|tlocale |
|00002150| 77 69 6c 6c 20 72 65 74 | 75 72 6e 20 74 68 65 20 |will ret|urn the |
|00002160| 6e 61 6d 65 20 6f 66 20 | 79 6f 75 72 0a 6c 6f 63 |name of |your.loc|
|00002170| 61 6c 65 2e 20 20 41 20 | 4e 55 4c 4c 20 72 65 74 |ale. A |NULL ret|
|00002180| 75 72 6e 20 76 61 6c 75 | 65 20 69 6e 64 69 63 61 |urn valu|e indica|
|00002190| 74 65 73 20 66 61 69 6c | 75 72 65 2e 20 20 4e 6f |tes fail|ure. No|
|000021a0| 74 65 20 74 68 61 74 20 | 74 68 65 0a 65 6e 76 69 |te that |the.envi|
|000021b0| 72 6f 6e 6d 65 6e 74 73 | 20 61 72 65 20 70 72 65 |ronments| are pre|
|000021c0| 64 65 74 65 72 6d 69 6e | 65 64 20 6f 75 74 73 69 |determin|ed outsi|
|000021d0| 64 65 20 79 6f 75 72 20 | 43 20 70 72 6f 67 72 61 |de your |C progra|
|000021e0| 6d 20 62 79 20 74 68 65 | 20 73 79 73 74 65 6d 0a |m by the| system.|
|000021f0| 79 6f 75 20 72 75 6e 20 | 6f 6e 2e 20 28 53 6f 20 |you run |on. (So |
|00002200| 74 68 65 20 65 78 61 6d | 70 6c 65 20 67 69 76 65 |the exam|ple give|
|00002210| 6e 20 68 65 72 65 20 69 | 73 20 6c 69 6b 65 6c 79 |n here i|s likely|
|00002220| 20 74 6f 20 66 61 69 6c | 20 6f 6e 20 61 6c 6c 20 | to fail| on all |
|00002230| 62 75 74 20 61 0a 66 65 | 77 20 73 79 73 74 65 6d |but a.fe|w system|
|00002240| 73 2e 29 20 43 68 65 63 | 6b 20 74 68 65 20 73 65 |s.) Chec|k the se|
|00002250| 74 6c 6f 63 61 6c 65 20 | 6d 61 6e 75 61 6c 20 70 |tlocale |manual p|
|00002260| 61 67 65 20 6f 72 20 79 | 6f 75 72 20 73 79 73 74 |age or y|our syst|
|00002270| 65 6d 0a 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |em.docum|entation|
|00002280| 20 74 6f 20 66 69 6e 64 | 20 6f 75 74 20 61 62 6f | to find| out abo|
|00002290| 75 74 20 74 68 65 20 65 | 6e 76 69 72 6f 6e 6d 65 |ut the e|nvironme|
|000022a0| 6e 74 73 20 61 76 61 69 | 6c 61 62 6c 65 2e 0a 0a |nts avai|lable...|
|000022b0| 54 68 65 72 65 20 61 72 | 65 20 73 65 76 65 72 61 |There ar|e severa|
|000022c0| 6c 20 4c 4f 43 41 4c 45 | 20 74 79 70 65 73 20 61 |l LOCALE| types a|
|000022d0| 76 61 69 6c 61 62 6c 65 | 20 66 6f 72 20 64 69 66 |vailable| for dif|
|000022e0| 66 65 72 65 6e 74 20 6c | 6f 63 61 6c 69 7a 61 74 |ferent l|ocalizat|
|000022f0| 69 6f 6e 0a 61 73 70 65 | 63 74 73 20 28 63 75 72 |ion.aspe|cts (cur|
|00002300| 72 65 6e 63 79 20 73 69 | 67 6e 2c 20 6e 75 6d 62 |rency si|gn, numb|
|00002310| 65 72 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |er repre|sentatio|
|00002320| 6e 2c 20 63 68 61 72 61 | 63 74 65 72 73 20 73 65 |n, chara|cters se|
|00002330| 74 73 29 2e 20 54 68 65 | 0a 76 61 6c 75 65 20 74 |ts). The|.value t|
|00002340| 68 65 79 20 63 61 6e 20 | 74 61 6b 65 20 69 73 20 |hey can |take is |
|00002350| 68 69 67 68 6c 79 20 73 | 79 73 74 65 6d 20 64 65 |highly s|ystem de|
|00002360| 70 65 6e 64 65 6e 74 2e | 20 41 6c 73 6f 2c 20 69 |pendent.| Also, i|
|00002370| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 75 70 0a 74 |t should| be up.t|
|00002380| 6f 20 74 68 65 20 75 73 | 65 72 20 74 6f 20 64 65 |o the us|er to de|
|00002390| 66 69 6e 65 20 74 68 65 | 20 6c 6f 63 61 6c 65 20 |fine the| locale |
|000023a0| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 68 65 20 6e |environm|ent he n|
|000023b0| 65 65 64 73 2e 20 0a 20 | 0a 41 20 43 20 70 72 6f |eeds. . |.A C pro|
|000023c0| 67 72 61 6d 20 69 6e 68 | 65 72 69 74 73 20 69 74 |gram inh|erits it|
|000023d0| 73 20 6c 6f 63 61 6c 65 | 20 65 6e 76 69 72 6f 6e |s locale| environ|
|000023e0| 6d 65 6e 74 20 76 61 72 | 69 61 62 6c 65 73 20 77 |ment var|iables w|
|000023f0| 68 65 6e 20 69 74 20 73 | 74 61 72 74 73 20 75 70 |hen it s|tarts up|
|00002400| 2e 0a 54 68 69 73 20 68 | 61 70 70 65 6e 73 20 61 |..This h|appens a|
|00002410| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 2e 20 20 48 |utomatic|ally. H|
|00002420| 6f 77 65 76 65 72 2c 20 | 74 68 65 73 65 20 76 61 |owever, |these va|
|00002430| 72 69 61 62 6c 65 73 20 | 64 6f 20 6e 6f 74 0a 61 |riables |do not.a|
|00002440| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 63 6f 6e |utomatic|ally con|
|00002450| 74 72 6f 6c 20 74 68 65 | 20 6c 6f 63 61 6c 65 20 |trol the| locale |
|00002460| 75 73 65 64 20 62 79 20 | 74 68 65 20 6c 69 62 72 |used by |the libr|
|00002470| 61 72 79 20 66 75 6e 63 | 74 69 6f 6e 73 2c 20 62 |ary func|tions, b|
|00002480| 65 63 61 75 73 65 0a 49 | 53 4f 2f 41 4e 53 49 20 |ecause.I|SO/ANSI |
|00002490| 43 20 73 61 79 73 20 74 | 68 61 74 20 61 6c 6c 20 |C says t|hat all |
|000024a0| 70 72 6f 67 72 61 6d 73 | 20 73 74 61 72 74 20 62 |programs| start b|
|000024b0| 79 20 64 65 66 61 75 6c | 74 20 69 6e 20 74 68 65 |y defaul|t in the|
|000024c0| 20 73 74 61 6e 64 61 72 | 64 20 43 0a 6c 6f 63 61 | standar|d C.loca|
|000024d0| 6c 65 2e 20 20 54 6f 20 | 75 73 65 20 74 68 65 20 |le. To |use the |
|000024e0| 6c 6f 63 61 6c 65 73 20 | 73 70 65 63 69 66 69 65 |locales |specifie|
|000024f0| 64 20 62 79 20 74 68 65 | 20 65 6e 76 69 72 6f 6e |d by the| environ|
|00002500| 6d 65 6e 74 2c 20 54 68 | 65 20 50 4f 53 49 58 0a |ment, Th|e POSIX.|
|00002510| 73 74 61 6e 64 61 72 64 | 20 64 65 66 69 6e 65 73 |standard| defines|
|00002520| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 63 | the fol|lowing c|
|00002530| 61 6c 6c 3a 0a 2d 2d 2d | 2d 2d 0a 73 65 74 6c 6f |all:.---|--.setlo|
|00002540| 63 61 6c 65 20 28 4c 43 | 5f 41 4c 4c 2c 20 22 22 |cale (LC|_ALL, ""|
|00002550| 29 3b 0a 2d 2d 2d 2d 2d | 0a 0a 4f 66 20 63 6f 75 |);.-----|..Of cou|
|00002560| 72 73 65 2c 20 79 6f 75 | 20 63 61 6e 20 6f 6e 6c |rse, you| can onl|
|00002570| 79 20 73 65 74 20 70 61 | 72 74 20 6f 66 20 79 6f |y set pa|rt of yo|
|00002580| 75 72 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 2c 20 |ur envir|onment, |
|00002590| 62 79 20 63 61 6c 6c 69 | 6e 67 2c 20 73 61 79 3a |by calli|ng, say:|
|000025a0| 0a 2d 2d 2d 2d 0a 73 65 | 74 6c 6f 63 61 6c 65 20 |.----.se|tlocale |
|000025b0| 28 4c 43 5f 43 54 59 50 | 45 2c 20 22 22 29 3b 0a |(LC_CTYP|E, "");.|
|000025c0| 2d 2d 2d 2d 0a 54 68 69 | 73 20 6f 6e 6c 79 20 64 |----.Thi|s only d|
|000025d0| 65 66 69 6e 65 73 20 74 | 68 65 20 63 68 61 72 61 |efines t|he chara|
|000025e0| 63 74 65 72 20 63 6c 61 | 73 73 69 66 69 63 61 74 |cter cla|ssificat|
|000025f0| 69 6f 6e 20 6d 61 63 72 | 6f 73 20 28 64 65 66 69 |ion macr|os (defi|
|00002600| 6e 65 64 20 69 6e 0a 63 | 74 79 70 65 2e 68 29 2e |ned in.c|type.h).|
|00002610| 0a 0a 54 68 69 73 20 69 | 73 20 61 20 6c 69 73 74 |..This i|s a list|
|00002620| 20 6f 66 20 6c 6f 63 61 | 6c 20 63 61 74 65 67 6f | of loca|l catego|
|00002630| 72 69 65 73 3a 0a 0a 20 | 20 20 20 20 20 20 20 20 |ries:.. | |
|00002640| 20 20 20 20 20 20 20 20 | 20 20 45 66 66 65 63 74 | | Effect|
|00002650| 20 6f 66 20 53 70 65 63 | 69 66 79 69 6e 67 20 20 | of Spec|ifying |
|00002660| 20 45 6e 76 69 72 6f 6e | 6d 65 6e 74 20 56 61 72 | Environ|ment Var|
|00002670| 69 61 62 6c 65 0a 20 20 | 20 20 20 63 61 74 65 67 |iable. | categ|
|00002680| 6f 72 79 20 20 20 20 20 | 20 74 68 65 20 56 61 6c |ory | the Val|
|00002690| 75 65 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ue | |
|000026a0| 41 66 66 65 63 74 65 64 | 0a 20 20 20 20 20 5f 5f |Affected|. __|
|000026b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000026c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000026d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000026e0| 5f 5f 5f 5f 5f 5f 5f 5f | 0a 0a 20 20 20 20 20 4c |________|.. L|
|000026f0| 43 5f 41 4c 4c 20 20 20 | 20 20 20 20 20 53 65 74 |C_ALL | Set|
|00002700| 73 20 6f 72 20 71 75 65 | 72 69 65 73 20 20 20 20 |s or que|ries |
|00002710| 20 20 20 20 4c 41 4e 47 | 0a 20 20 20 20 20 20 20 | LANG|. |
|00002720| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6e 74 69 | | enti|
|00002730| 72 65 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 0a 20 |re envir|onment. |
|00002740| 20 20 20 20 4c 43 5f 43 | 4f 4c 4c 41 54 45 20 20 | LC_C|OLLATE |
|00002750| 20 20 43 68 61 6e 67 65 | 73 20 6f 72 20 71 75 65 | Change|s or que|
|00002760| 72 69 65 73 20 20 20 20 | 20 4c 43 5f 43 4f 4c 4c |ries | LC_COLL|
|00002770| 41 54 45 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ATE. | |
|00002780| 20 20 20 20 20 20 20 63 | 6f 6c 6c 61 74 69 6f 6e | c|ollation|
|00002790| 20 73 65 71 75 65 6e 63 | 65 73 0a 20 20 20 20 20 | sequenc|es. |
|000027a0| 4c 43 5f 43 54 59 50 45 | 20 20 20 20 20 20 43 68 |LC_CTYPE| Ch|
|000027b0| 61 6e 67 65 73 20 6f 72 | 20 71 75 65 72 69 65 73 |anges or| queries|
|000027c0| 20 20 20 20 20 4c 43 5f | 43 54 59 50 45 0a 20 20 | LC_|CTYPE. |
|000027d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027e0| 20 63 68 61 72 61 63 74 | 65 72 20 63 6c 61 73 73 | charact|er class|
|000027f0| 69 66 69 2d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ifi-. | |
|00002800| 20 20 20 20 20 20 20 20 | 63 61 74 69 6f 6e 0a 20 | |cation. |
|00002810| 20 20 20 20 4c 43 5f 4e | 55 4d 45 52 49 43 20 20 | LC_N|UMERIC |
|00002820| 20 20 43 68 61 6e 67 65 | 73 20 6f 72 20 71 75 65 | Change|s or que|
|00002830| 72 69 65 73 20 20 20 20 | 20 4c 43 5f 4e 55 4d 45 |ries | LC_NUME|
|00002840| 52 49 43 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |RIC. | |
|00002850| 20 20 20 20 20 20 20 6e | 75 6d 62 65 72 20 66 6f | n|umber fo|
|00002860| 72 6d 61 74 20 69 6e 66 | 6f 72 2d 0a 20 20 20 20 |rmat inf|or-. |
|00002870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6d | | m|
|00002880| 61 74 69 6f 6e 0a 20 20 | 20 20 20 4c 43 5f 54 49 |ation. | LC_TI|
|00002890| 4d 45 20 20 20 20 20 20 | 20 43 68 61 6e 67 65 73 |ME | Changes|
|000028a0| 20 6f 72 20 71 75 65 72 | 69 65 73 20 20 20 20 20 | or quer|ies |
|000028b0| 4c 43 5f 54 49 4d 45 0a | 20 20 20 20 20 20 20 20 |LC_TIME.| |
|000028c0| 20 20 20 20 20 20 20 20 | 20 20 20 74 69 6d 65 20 | | time |
|000028d0| 63 6f 6e 76 65 72 73 69 | 6f 6e 0a 20 20 20 20 20 |conversi|on. |
|000028e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 70 61 | | pa|
|000028f0| 72 61 6d 65 74 65 72 73 | 0a 20 20 20 20 20 4c 43 |rameters|. LC|
|00002900| 5f 4d 4f 4e 45 54 41 52 | 59 20 20 20 43 68 61 6e |_MONETAR|Y Chan|
|00002910| 67 65 73 20 6f 72 20 71 | 75 65 72 69 65 73 20 20 |ges or q|ueries |
|00002920| 20 20 20 4c 43 5f 4d 4f | 4e 45 54 41 52 59 0a 20 | LC_MO|NETARY. |
|00002930| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002940| 20 20 6d 6f 6e 65 74 61 | 72 79 20 69 6e 66 6f 72 | moneta|ry infor|
|00002950| 6d 61 74 69 6f 6e 0a 0a | 0a 0a 0a 34 2e 20 55 73 |mation..|...4. Us|
|00002960| 69 6e 67 20 74 68 65 20 | 6c 6f 63 61 6c 65 20 69 |ing the |locale i|
|00002970| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 66 6f 72 20 63 |nformati|on for c|
|00002980| 68 61 72 61 63 74 65 72 | 20 63 6c 61 73 73 69 66 |haracter| classif|
|00002990| 69 63 61 74 69 6f 6e 0a | 49 66 20 79 6f 75 20 77 |ication.|If you w|
|000029a0| 72 69 74 65 20 61 20 70 | 72 6f 67 72 61 6d 20 77 |rite a p|rogram w|
|000029b0| 68 69 63 68 20 73 75 70 | 70 6f 72 74 73 20 69 6e |hich sup|ports in|
|000029c0| 74 65 72 6e 61 74 69 6f | 6e 61 6c 20 75 73 65 2c |ternatio|nal use,|
|000029d0| 20 79 6f 75 20 73 68 6f | 75 6c 64 0a 75 73 65 20 | you sho|uld.use |
|000029e0| 74 68 65 20 61 76 61 69 | 6c 61 62 6c 65 20 73 74 |the avai|lable st|
|000029f0| 61 6e 64 61 72 64 69 7a | 65 64 20 66 75 6e 63 74 |andardiz|ed funct|
|00002a00| 69 6f 6e 73 2c 20 61 73 | 20 6f 6e 6c 79 20 74 68 |ions, as| only th|
|00002a10| 65 73 65 20 77 69 6c 6c | 20 62 65 0a 69 6e 66 6c |ese will| be.infl|
|00002a20| 75 65 6e 63 65 64 20 62 | 79 20 74 68 65 20 73 65 |uenced b|y the se|
|00002a30| 74 6c 6f 63 61 6c 65 20 | 63 61 6c 6c 2e 20 54 68 |tlocale |call. Th|
|00002a40| 75 73 2c 20 69 66 20 79 | 6f 75 20 77 61 6e 74 20 |us, if y|ou want |
|00002a50| 74 6f 20 63 6f 6e 76 65 | 72 74 20 61 0a 63 61 70 |to conve|rt a.cap|
|00002a60| 69 74 61 6c 20 6c 65 74 | 74 65 72 20 69 6e 20 63 |ital let|ter in c|
|00002a70| 20 74 6f 20 61 20 6c 6f | 77 65 72 20 63 61 73 65 | to a lo|wer case|
|00002a80| 20 6c 65 74 74 65 72 20 | 69 6e 20 6c 2c 20 5f 64 | letter |in l, _d|
|00002a90| 6f 6e 27 74 5f 20 77 72 | 69 74 65 3a 0a 0a 6c 20 |on't_ wr|ite:..l |
|00002aa0| 3d 20 63 20 2d 20 27 41 | 27 20 2b 20 27 61 27 3b |= c - 'A|' + 'a';|
|00002ab0| 0a 0a 57 68 69 6c 65 20 | 74 68 69 73 20 77 69 6c |..While |this wil|
|00002ac0| 6c 20 77 6f 72 6b 20 66 | 6f 72 20 63 68 61 72 61 |l work f|or chara|
|00002ad0| 63 74 65 72 73 20 69 6e | 20 74 68 65 20 55 53 2d |cters in| the US-|
|00002ae0| 41 53 43 49 49 20 63 68 | 61 72 61 63 74 65 72 20 |ASCII ch|aracter |
|00002af0| 73 65 74 2c 20 69 74 0a | 77 69 6c 6c 20 6e 6f 74 |set, it.|will not|
|00002b00| 20 77 6f 72 6b 20 77 69 | 74 68 20 6d 61 6e 79 20 | work wi|th many |
|00002b10| 6f 74 68 65 72 20 63 68 | 61 72 61 63 74 65 72 20 |other ch|aracter |
|00002b20| 73 65 74 73 2e 20 54 68 | 65 20 66 6f 6c 6c 6f 77 |sets. Th|e follow|
|00002b30| 69 6e 67 2c 0a 73 74 61 | 6e 64 61 72 64 2d 63 6f |ing,.sta|ndard-co|
|00002b40| 6e 66 6f 72 6d 61 6e 74 | 20 63 6f 64 65 20 77 69 |nformant| code wi|
|00002b50| 6c 6c 3a 0a 0a 23 69 6e | 63 6c 75 64 65 20 3c 63 |ll:..#in|clude <c|
|00002b60| 74 79 70 65 2e 68 3e 0a | 0a 2e 2e 2e 2e 0a 0a 6c |type.h>.|.......l|
|00002b70| 20 3d 20 74 6f 6c 6f 77 | 65 72 28 63 29 3b 0a 0a | = tolow|er(c);..|
|00002b80| 41 6c 73 6f 20 6e 6f 74 | 65 20 74 68 61 74 20 74 |Also not|e that t|
|00002b90| 68 65 20 73 65 63 6f 6e | 64 20 63 6f 64 65 20 6d |he secon|d code m|
|00002ba0| 61 79 20 61 63 74 75 61 | 6c 6c 79 20 62 65 20 66 |ay actua|lly be f|
|00002bb0| 61 73 74 65 72 20 74 68 | 61 6e 20 65 76 65 6e 20 |aster th|an even |
|00002bc0| 74 68 65 0a 66 75 6c 6c | 20 22 43 22 20 6c 6f 63 |the.full| "C" loc|
|00002bd0| 61 6c 65 20 66 75 6e 63 | 74 69 6f 6e 61 6c 69 74 |ale func|tionalit|
|00002be0| 79 20 28 66 6f 72 20 6d | 6f 73 74 20 69 6d 70 6c |y (for m|ost impl|
|00002bf0| 65 6d 65 6e 74 61 74 69 | 6f 6e 73 29 2c 20 61 73 |ementati|ons), as|
|00002c00| 20 69 74 0a 72 65 70 6c | 61 63 65 73 20 61 20 63 | it.repl|aces a c|
|00002c10| 6f 6d 70 6c 65 78 20 65 | 78 70 72 65 73 73 69 6f |omplex e|xpressio|
|00002c20| 6e 20 28 20 28 63 3c 3d | 27 5a 27 20 26 26 20 63 |n ( (c<=|'Z' && c|
|00002c30| 3e 3d 27 41 27 29 3f 20 | 63 2d 27 41 27 2b 61 3a |>='A')? |c-'A'+a:|
|00002c40| 63 3b 20 29 62 79 20 61 | 20 73 69 6d 70 6c 65 0a |c; )by a| simple.|
|00002c50| 74 61 62 6c 65 20 6c 6f | 6f 6b 75 70 21 0a 0a 4e |table lo|okup!..N|
|00002c60| 6f 74 65 20 74 68 61 74 | 20 74 68 69 73 20 49 53 |ote that| this IS|
|00002c70| 4f 20 73 74 61 6e 64 61 | 72 64 20 69 73 20 69 6e |O standa|rd is in|
|00002c80| 64 65 70 65 6e 64 65 6e | 74 20 6f 66 20 74 68 65 |dependen|t of the|
|00002c90| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 74 0a 65 | charact|er set.e|
|00002ca0| 6e 63 6f 64 69 6e 67 20 | 75 73 65 64 21 0a 0a 0a |ncoding |used!...|
|00002cb0| 0a 35 2e 20 4c 61 6e 67 | 75 61 67 65 20 69 6e 64 |.5. Lang|uage ind|
|00002cc0| 65 70 65 6e 64 65 6e 74 | 20 6d 65 73 73 61 67 65 |ependent| message|
|00002cd0| 73 0a 54 68 65 72 65 20 | 61 72 65 20 74 77 6f 20 |s.There |are two |
|00002ce0| 63 6f 6d 70 65 74 69 6e | 67 20 73 74 61 6e 64 61 |competin|g standa|
|00002cf0| 72 64 73 20 66 6f 72 20 | 6c 61 6e 67 75 61 67 65 |rds for |language|
|00002d00| 20 69 6e 64 65 70 65 6e | 64 65 6e 74 20 6d 65 73 | indepen|dent mes|
|00002d10| 73 61 67 65 73 3a 0a 6f | 6e 65 20 62 79 20 58 2f |sages:.o|ne by X/|
|00002d20| 4f 70 65 6e 2c 20 61 6e | 64 20 61 6e 6f 74 68 65 |Open, an|d anothe|
|00002d30| 72 20 6f 6e 65 20 70 72 | 6f 70 61 67 61 74 65 64 |r one pr|opagated|
|00002d40| 20 62 79 20 53 75 6e 2e | 20 20 54 68 65 20 58 2f | by Sun.| The X/|
|00002d50| 4f 70 65 6e 20 73 74 61 | 6e 64 61 72 64 0a 73 65 |Open sta|ndard.se|
|00002d60| 65 6d 73 20 74 6f 20 68 | 61 76 65 20 66 6f 75 6e |ems to h|ave foun|
|00002d70| 64 20 61 20 6c 61 72 67 | 65 72 20 66 6f 6c 6c 6f |d a larg|er follo|
|00002d80| 77 69 6e 67 20 61 73 20 | 69 74 20 68 61 73 20 62 |wing as |it has b|
|00002d90| 65 65 6e 20 61 72 6f 75 | 6e 64 20 66 6f 72 20 61 |een arou|nd for a|
|00002da0| 0a 6c 6f 6e 67 65 72 20 | 74 69 6d 65 2e 20 20 41 |.longer |time. A|
|00002db0| 73 20 6f 66 20 53 6f 6c | 61 72 69 73 20 32 2e 78 |s of Sol|aris 2.x|
|00002dc0| 2c 20 53 75 6e 20 73 75 | 70 70 6f 72 74 73 20 62 |, Sun su|pports b|
|00002dd0| 6f 74 68 20 74 68 65 20 | 58 2f 4f 70 65 6e 20 61 |oth the |X/Open a|
|00002de0| 6e 64 20 53 75 6e 0a 6d | 65 73 73 61 67 65 20 73 |nd Sun.m|essage s|
|00002df0| 74 61 6e 64 61 72 64 73 | 2e 20 20 28 74 68 65 79 |tandards|. (they|
|00002e00| 20 75 73 65 64 20 74 6f | 20 73 75 70 70 6f 72 74 | used to| support|
|00002e10| 20 6f 6e 6c 79 20 74 68 | 65 69 72 20 6f 77 6e 20 | only th|eir own |
|00002e20| 22 73 74 61 6e 64 61 72 | 64 22 2e 29 0a 0a 35 2e |"standar|d".)..5.|
|00002e30| 31 20 58 2f 4f 70 65 6e | 20 6c 61 6e 67 75 61 67 |1 X/Open| languag|
|00002e40| 65 20 69 6e 64 65 70 65 | 6e 64 65 6e 74 20 6d 65 |e indepe|ndent me|
|00002e50| 73 73 61 67 65 73 0a 58 | 2f 4f 70 65 6e 20 64 65 |ssages.X|/Open de|
|00002e60| 66 69 6e 65 73 20 61 20 | 6d 65 74 68 6f 64 20 66 |fines a |method f|
|00002e70| 6f 72 20 70 72 6f 76 69 | 64 69 6e 67 20 6c 61 6e |or provi|ding lan|
|00002e80| 67 75 61 67 65 2d 69 6e | 64 65 70 65 6e 64 65 6e |guage-in|dependen|
|00002e90| 74 20 6d 65 73 73 61 67 | 65 73 2e 0a 45 72 72 6f |t messag|es..Erro|
|00002ea0| 72 20 6d 65 73 73 61 67 | 65 73 20 61 72 65 20 6b |r messag|es are k|
|00002eb0| 65 70 74 20 69 6e 20 61 | 20 63 61 74 61 6c 6f 67 |ept in a| catalog|
|00002ec0| 20 77 68 69 63 68 20 69 | 73 20 6f 70 65 6e 65 64 | which i|s opened|
|00002ed0| 20 75 70 6f 6e 20 70 72 | 6f 67 72 61 6d 0a 73 74 | upon pr|ogram.st|
|00002ee0| 61 72 74 20 77 69 74 68 | 20 61 20 6c 6f 63 61 6c |art with| a local|
|00002ef0| 65 20 73 70 65 63 69 66 | 69 63 61 74 69 6f 6e 2e |e specif|ication.|
|00002f00| 20 20 54 68 65 6e 20 74 | 68 65 20 6d 65 73 73 61 | Then t|he messa|
|00002f10| 67 65 20 6e 75 6d 62 65 | 72 20 61 6e 64 20 61 20 |ge numbe|r and a |
|00002f20| 73 65 74 0a 73 70 65 63 | 69 66 69 63 61 74 69 6f |set.spec|ificatio|
|00002f30| 6e 20 61 72 65 20 75 73 | 65 64 20 74 6f 20 69 6e |n are us|ed to in|
|00002f40| 64 65 78 20 74 68 65 20 | 6d 65 73 73 61 67 65 20 |dex the |message |
|00002f50| 63 61 74 61 6c 6f 67 2e | 20 20 41 20 64 65 66 61 |catalog.| A defa|
|00002f60| 75 6c 74 20 66 6f 75 72 | 74 68 0a 61 72 67 75 6d |ult four|th.argum|
|00002f70| 65 6e 74 20 69 73 20 73 | 70 65 63 69 66 69 65 64 |ent is s|pecified|
|00002f80| 20 77 68 69 63 68 20 77 | 69 6c 6c 20 62 65 20 70 | which w|ill be p|
|00002f90| 72 69 6e 74 65 64 20 69 | 66 20 61 20 70 61 72 74 |rinted i|f a part|
|00002fa0| 69 63 75 6c 61 72 20 6d | 65 73 73 61 67 65 0a 63 |icular m|essage.c|
|00002fb0| 61 6e 6e 6f 74 20 62 65 | 20 66 6f 75 6e 64 20 69 |annot be| found i|
|00002fc0| 6e 20 74 68 65 20 63 61 | 74 61 6c 6f 67 2e 20 0a |n the ca|talog. .|
|00002fd0| 0a 48 65 72 65 20 69 73 | 20 74 68 65 20 77 6f 72 |.Here is| the wor|
|00002fe0| 6c 64 2d 66 61 6d 6f 75 | 73 20 43 20 70 72 6f 67 |ld-famou|s C prog|
|00002ff0| 72 61 6d 20 75 73 69 6e | 67 20 74 68 65 20 6c 61 |ram usin|g the la|
|00003000| 6e 67 75 61 67 65 2d 69 | 6e 64 65 70 65 6e 64 65 |nguage-i|ndepende|
|00003010| 6e 74 0a 58 2f 4f 70 65 | 6e 20 6d 65 73 73 61 67 |nt.X/Ope|n messag|
|00003020| 65 20 73 74 61 6e 64 61 | 72 64 3a 0a 2d 2d 2d 2d |e standa|rd:.----|
|00003030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003040| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003070| 2d 2d 2d 2d 2d 2d 0a 23 | 69 6e 63 6c 75 64 65 20 |------.#|include |
|00003080| 3c 73 74 64 69 6f 2e 68 | 3e 0a 23 69 6e 63 6c 75 |<stdio.h|>.#inclu|
|00003090| 64 65 20 3c 6e 6c 5f 74 | 79 70 65 73 2e 68 3e 0a |de <nl_t|ypes.h>.|
|000030a0| 20 0a 23 64 65 66 69 6e | 65 20 53 45 54 20 31 0a | .#defin|e SET 1.|
|000030b0| 23 64 65 66 69 6e 65 20 | 4d 53 47 5f 48 45 4c 4c |#define |MSG_HELL|
|000030c0| 4f 20 31 0a 20 0a 6e 6c | 5f 63 61 74 64 20 63 61 |O 1. .nl|_catd ca|
|000030d0| 74 66 64 3b 0a 20 0a 69 | 6e 74 20 6d 61 69 6e 20 |tfd;. .i|nt main |
|000030e0| 28 69 6e 74 20 61 72 67 | 63 2c 20 63 68 61 72 20 |(int arg|c, char |
|000030f0| 2a 2a 61 72 67 76 29 20 | 7b 0a 20 20 20 20 20 20 |**argv) |{. |
|00003100| 20 20 2f 2a 20 4f 70 65 | 6e 20 74 68 65 20 6d 65 | /* Ope|n the me|
|00003110| 73 73 61 67 65 20 63 61 | 74 61 6c 6f 67 2e 20 57 |ssage ca|talog. W|
|00003120| 65 20 75 73 65 20 74 68 | 65 20 62 61 73 65 6e 61 |e use th|e basena|
|00003130| 6d 65 20 6f 66 20 74 68 | 65 20 70 72 6f 67 72 61 |me of th|e progra|
|00003140| 6d 0a 20 20 20 20 20 20 | 20 20 20 2a 20 61 73 20 |m. | * as |
|00003150| 74 68 65 20 63 61 74 61 | 6c 6f 67 20 6e 61 6d 65 |the cata|log name|
|00003160| 2e 20 4f 66 20 63 6f 75 | 72 73 65 2c 20 73 65 76 |. Of cou|rse, sev|
|00003170| 65 72 61 6c 20 70 72 6f | 67 72 61 6d 73 20 63 61 |eral pro|grams ca|
|00003180| 6e 20 61 6c 73 6f 0a 20 | 20 20 20 20 20 20 20 20 |n also. | |
|00003190| 2a 20 73 68 61 72 65 20 | 61 20 20 63 6f 6d 6d 6f |* share |a commo|
|000031a0| 6e 20 63 61 74 61 6c 6f | 67 2e 0a 20 20 20 20 20 |n catalo|g.. |
|000031b0| 20 20 20 20 2a 2f 0a 20 | 20 20 20 20 20 20 20 63 | */. | c|
|000031c0| 61 74 66 64 20 3d 20 63 | 61 74 6f 70 65 6e 20 28 |atfd = c|atopen (|
|000031d0| 62 61 73 65 6e 61 6d 65 | 20 28 61 72 67 76 20 5b |basename| (argv [|
|000031e0| 30 5d 29 2c 20 4e 4c 5f | 43 41 54 5f 4c 4f 43 41 |0]), NL_|CAT_LOCA|
|000031f0| 4c 45 29 3b 0a 20 20 20 | 20 20 20 20 20 2f 2a 20 |LE);. | /* |
|00003200| 63 61 74 67 65 74 73 20 | 72 65 74 75 72 6e 73 20 |catgets |returns |
|00003210| 6d 65 73 73 61 67 65 20 | 4d 53 47 5f 48 45 4c 4c |message |MSG_HELL|
|00003220| 4f 20 66 72 6f 6d 20 73 | 65 74 20 53 45 54 20 66 |O from s|et SET f|
|00003230| 72 6f 6d 20 74 68 65 20 | 0a 20 20 20 20 20 20 20 |rom the |. |
|00003240| 20 20 2a 20 6d 65 73 73 | 61 67 65 20 63 61 74 61 | * mess|age cata|
|00003250| 6c 6f 67 20 63 61 74 66 | 64 2e 20 49 66 20 63 61 |log catf|d. If ca|
|00003260| 74 66 64 20 64 6f 65 73 | 20 6e 6f 74 20 72 65 66 |tfd does| not ref|
|00003270| 65 72 20 74 6f 20 61 20 | 6d 65 73 73 61 67 65 0a |er to a |message.|
|00003280| 20 20 20 20 20 20 20 20 | 20 2a 20 63 61 74 61 6c | | * catal|
|00003290| 6f 67 2c 20 6f 72 20 74 | 68 65 20 72 65 71 75 65 |og, or t|he reque|
|000032a0| 73 74 65 64 20 6d 65 73 | 73 61 67 65 20 63 61 6e |sted mes|sage can|
|000032b0| 6e 6f 74 20 62 65 20 66 | 6f 75 6e 64 2c 20 74 68 |not be f|ound, th|
|000032c0| 65 0a 20 20 20 20 20 20 | 20 20 20 2a 20 63 61 74 |e. | * cat|
|000032d0| 61 6c 6f 67 2c 20 6f 72 | 20 74 68 65 20 72 65 71 |alog, or| the req|
|000032e0| 75 65 73 74 65 64 20 6d | 65 73 73 61 67 65 20 63 |uested m|essage c|
|000032f0| 61 6e 6e 6f 74 20 62 65 | 20 66 6f 75 6e 64 2c 20 |annot be| found, |
|00003300| 74 68 65 0a 20 20 20 20 | 20 20 20 20 20 2a 20 66 |the. | * f|
|00003310| 6f 75 72 74 68 20 61 72 | 67 75 6d 65 6e 74 20 69 |ourth ar|gument i|
|00003320| 73 20 72 65 74 75 72 6e | 65 64 2e 0a 20 20 20 20 |s return|ed.. |
|00003330| 20 20 20 20 20 2a 2f 0a | 20 20 20 20 20 20 20 20 | */.| |
|00003340| 70 72 69 6e 74 66 20 28 | 63 61 74 67 65 74 73 20 |printf (|catgets |
|00003350| 28 63 61 74 66 64 2c 20 | 53 45 54 2c 20 4d 53 47 |(catfd, |SET, MSG|
|00003360| 5f 48 45 4c 4c 4f 2c 20 | 22 68 65 6c 6c 6f 2c 20 |_HELLO, |"hello, |
|00003370| 77 6f 72 6c 64 5c 6e 22 | 29 29 3b 0a 20 20 20 20 |world\n"|));. |
|00003380| 20 20 20 20 63 61 74 63 | 6c 6f 73 65 20 28 63 61 | catc|lose (ca|
|00003390| 74 66 64 29 3b 0a 20 20 | 20 20 20 20 20 20 72 65 |tfd);. | re|
|000033a0| 74 75 72 6e 20 30 3b 0a | 7d 0a 2d 2d 2d 2d 2d 2d |turn 0;.|}.------|
|000033b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000033c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000033d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000033e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000033f0| 2d 2d 2d 0a 0a 46 6f 72 | 20 63 61 74 6f 70 65 6e |---..For| catopen|
|00003400| 2c 20 73 70 65 63 69 66 | 79 20 74 68 65 20 63 6f |, specif|y the co|
|00003410| 6e 73 74 61 6e 74 20 4e | 4c 5f 43 41 54 5f 4c 4f |nstant N|L_CAT_LO|
|00003420| 43 41 4c 45 20 74 6f 20 | 6f 70 65 6e 20 74 68 65 |CALE to |open the|
|00003430| 20 6d 65 73 73 61 67 65 | 0a 63 61 74 61 6c 6f 67 | message|.catalog|
|00003440| 20 66 6f 72 20 74 68 65 | 20 6c 6f 63 61 6c 65 20 | for the| locale |
|00003450| 73 65 74 20 66 6f 72 20 | 74 68 65 20 4c 43 5f 4d |set for |the LC_M|
|00003460| 45 53 53 41 47 45 53 20 | 76 61 72 69 61 62 6c 65 |ESSAGES |variable|
|00003470| 3b 20 75 73 69 6e 67 0a | 4e 4c 5f 43 41 54 5f 4c |; using.|NL_CAT_L|
|00003480| 4f 43 41 4c 45 20 63 6f | 6e 66 6f 72 6d 73 20 74 |OCALE co|nforms t|
|00003490| 6f 20 74 68 65 20 58 50 | 47 34 20 73 74 61 6e 64 |o the XP|G4 stand|
|000034a0| 61 72 64 2e 20 20 59 6f | 75 20 63 61 6e 20 73 70 |ard. Yo|u can sp|
|000034b0| 65 63 69 66 79 20 30 20 | 28 7a 65 72 6f 29 0a 66 |ecify 0 |(zero).f|
|000034c0| 6f 72 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |or compa|tibility|
|000034d0| 20 77 69 74 68 20 58 50 | 47 33 3b 20 77 68 65 6e | with XP|G3; when|
|000034e0| 20 6f 66 6c 61 67 20 69 | 73 20 73 65 74 20 74 6f | oflag i|s set to|
|000034f0| 20 7a 65 72 6f 2c 20 74 | 68 65 20 6c 6f 63 61 6c | zero, t|he local|
|00003500| 65 20 73 65 74 0a 66 6f | 72 20 74 68 65 20 4c 41 |e set.fo|r the LA|
|00003510| 4e 47 20 76 61 72 69 61 | 62 6c 65 20 64 65 74 65 |NG varia|ble dete|
|00003520| 72 6d 69 6e 65 73 20 74 | 68 65 20 6d 65 73 73 61 |rmines t|he messa|
|00003530| 67 65 20 63 61 74 61 6c | 6f 67 20 6c 6f 63 61 6c |ge catal|og local|
|00003540| 65 2e 0a 0a 53 65 76 65 | 72 61 6c 20 75 74 69 6c |e...Seve|ral util|
|00003550| 69 74 69 65 73 20 65 78 | 69 73 74 20 66 6f 72 20 |ities ex|ist for |
|00003560| 67 65 6e 65 72 61 74 69 | 6e 67 20 6d 65 73 73 61 |generati|ng messa|
|00003570| 67 65 20 63 61 74 61 6c | 6f 67 73 20 61 6e 64 20 |ge catal|ogs and |
|00003580| 66 6f 72 0a 75 70 67 72 | 61 64 69 6e 67 20 70 72 |for.upgr|ading pr|
|00003590| 6f 67 72 61 6d 73 20 77 | 68 69 63 68 20 63 6f 6e |ograms w|hich con|
|000035a0| 74 61 69 6e 20 68 61 72 | 64 2d 77 69 72 65 64 20 |tain har|d-wired |
|000035b0| 73 74 72 69 6e 67 73 3a | 0a 2a 20 67 65 6e 63 61 |strings:|.* genca|
|000035c0| 74 20 69 73 20 75 73 65 | 64 20 74 6f 20 67 65 6e |t is use|d to gen|
|000035d0| 65 72 61 74 65 20 6d 65 | 73 73 61 67 65 20 63 61 |erate me|ssage ca|
|000035e0| 74 61 6c 6f 67 73 0a 5b | 41 6c 6c 20 6f 74 68 65 |talogs.[|All othe|
|000035f0| 72 20 70 72 6f 67 72 61 | 6d 73 20 61 72 65 20 4f |r progra|ms are O|
|00003600| 53 2d 73 70 65 63 69 66 | 69 63 3a 5d 0a 2a 20 55 |S-specif|ic:].* U|
|00003610| 6c 74 72 69 78 20 61 6e | 64 20 4f 53 46 20 73 75 |ltrix an|d OSF su|
|00003620| 70 70 6f 72 74 20 74 68 | 65 20 65 78 74 72 61 63 |pport th|e extrac|
|00003630| 74 20 70 72 6f 67 72 61 | 6d 20 77 68 69 63 68 20 |t progra|m which |
|00003640| 77 69 6c 6c 20 65 78 74 | 72 61 63 74 20 73 74 72 |will ext|ract str|
|00003650| 69 6e 67 0a 20 20 63 6f | 6e 73 74 61 6e 74 73 20 |ing. co|nstants |
|00003660| 66 72 6f 6d 20 74 68 65 | 20 43 20 73 6f 75 72 63 |from the| C sourc|
|00003670| 65 20 63 6f 64 65 2c 20 | 61 6e 64 20 68 61 73 20 |e code, |and has |
|00003680| 61 6e 20 6f 70 74 69 6f | 6e 20 74 6f 20 72 65 70 |an optio|n to rep|
|00003690| 6c 61 63 65 20 74 68 65 | 73 65 0a 20 20 73 74 72 |lace the|se. str|
|000036a0| 69 6e 67 73 20 77 69 74 | 68 20 63 61 6c 6c 73 20 |ings wit|h calls |
|000036b0| 74 6f 20 63 61 74 67 65 | 74 73 2e 0a 2a 20 48 50 |to catge|ts..* HP|
|000036c0| 2f 55 58 20 68 61 73 20 | 61 20 73 69 6d 69 6c 61 |/UX has |a simila|
|000036d0| 72 20 75 74 69 6c 69 74 | 79 20 63 61 6c 6c 65 64 |r utilit|y called|
|000036e0| 20 66 69 6e 64 6d 73 67 | 2e 0a 2a 20 55 6e 64 65 | findmsg|..* Unde|
|000036f0| 72 20 4f 53 46 2c 20 6d | 65 73 73 61 67 65 20 63 |r OSF, m|essage c|
|00003700| 61 74 61 6c 6f 67 73 20 | 6d 61 79 20 62 65 20 6c |atalogs |may be l|
|00003710| 69 73 74 65 64 20 77 69 | 74 68 20 74 68 65 20 64 |isted wi|th the d|
|00003720| 73 70 63 61 74 20 75 74 | 69 6c 69 74 79 2e 0a 2a |spcat ut|ility..*|
|00003730| 20 48 50 2f 55 58 20 63 | 61 6c 6c 73 20 61 20 73 | HP/UX c|alls a s|
|00003740| 69 6d 69 6c 61 72 20 75 | 74 69 6c 69 74 79 20 64 |imilar u|tility d|
|00003750| 75 6d 70 6d 73 67 2e 0a | 0a 0a 35 2e 32 20 53 75 |umpmsg..|..5.2 Su|
|00003760| 6e 2f 55 6e 69 66 6f 72 | 75 6d 20 0a 53 75 6e 20 |n/Unifor|um .Sun |
|00003770| 69 6d 70 6c 65 6d 65 6e | 74 73 20 61 20 64 69 66 |implemen|ts a dif|
|00003780| 66 65 72 65 6e 74 20 73 | 65 74 20 6f 66 20 66 75 |ferent s|et of fu|
|00003790| 6e 63 74 69 6f 6e 73 20 | 66 75 6e 63 74 69 6f 6e |nctions |function|
|000037a0| 73 20 74 6f 20 73 75 70 | 70 6f 72 74 20 69 31 38 |s to sup|port i18|
|000037b0| 6e 0a 6f 66 20 6d 65 73 | 73 61 67 65 73 2e 20 20 |n.of mes|sages. |
|000037c0| 54 68 69 73 20 6d 65 63 | 68 61 6e 69 73 6d 20 69 |This mec|hanism i|
|000037d0| 73 20 6e 6f 77 20 61 6c | 73 6f 20 75 73 65 64 20 |s now al|so used |
|000037e0| 62 79 20 74 68 65 20 47 | 4e 55 20 70 72 6f 6a 65 |by the G|NU proje|
|000037f0| 63 74 20 74 6f 0a 73 75 | 70 70 6f 72 74 20 6c 6f |ct to.su|pport lo|
|00003800| 63 61 6c 69 7a 65 64 20 | 65 72 72 6f 72 20 6d 65 |calized |error me|
|00003810| 73 73 61 67 65 73 3a 0a | 0a 59 6f 75 20 63 61 6e |ssages:.|.You can|
|00003820| 20 65 69 74 68 65 72 20 | 75 73 65 3a 0a 2d 2d 2d | either |use:.---|
|00003830| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003840| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003850| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 0a 6d 61 |--------|----..ma|
|00003860| 69 6e 28 29 0a 7b 0a 09 | 2f 2f 20 67 65 74 20 74 |in().{..|// get t|
|00003870| 68 65 20 6d 65 73 73 61 | 67 65 20 63 61 74 61 6c |he messa|ge catal|
|00003880| 6f 67 20 6e 61 6d 65 64 | 20 22 68 65 6c 6c 6f 70 |og named| "hellop|
|00003890| 72 6f 67 72 61 6d 22 20 | 0a 09 2f 2f 20 66 6f 72 |rogram" |..// for|
|000038a0| 20 74 68 65 20 68 65 6c | 6c 6f 20 77 6f 72 6c 64 | the hel|lo world|
|000038b0| 20 70 72 6f 67 72 61 6d | 0a 09 74 65 78 74 64 6f | program|..textdo|
|000038c0| 6d 61 69 6e 28 22 68 65 | 6c 6c 6f 70 72 6f 67 72 |main("he|lloprogr|
|000038d0| 61 6d 22 29 3b 09 0a 0a | 09 2f 2f 20 67 65 74 20 |am");...|.// get |
|000038e0| 74 68 65 20 74 72 61 6e | 73 6c 61 74 69 6f 6e 20 |the tran|slation |
|000038f0| 66 6f 72 20 74 68 65 20 | 22 48 65 6c 6c 6f 2c 20 |for the |"Hello, |
|00003900| 77 6f 72 6c 64 5c 6e 22 | 20 73 74 72 69 6e 67 0a |world\n"| string.|
|00003910| 09 70 72 69 6e 74 66 28 | 67 65 74 74 65 78 74 28 |.printf(|gettext(|
|00003920| 22 48 65 6c 6c 6f 2c 20 | 77 6f 72 6c 64 5c 6e 22 |"Hello, |world\n"|
|00003930| 29 29 3b 0a 7d 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |));.}.--|--------|
|00003940| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003950| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003960| 2d 2d 2d 2d 2d 0a 0a 6f | 72 20 79 6f 75 20 63 61 |-----..o|r you ca|
|00003970| 6e 20 72 6f 6c 6c 20 61 | 6c 6c 20 69 6e 20 6f 6e |n roll a|ll in on|
|00003980| 65 20 61 6e 64 20 77 72 | 69 74 65 0a 0a 2d 2d 2d |e and wr|ite..---|
|00003990| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000039a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000039b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 6d 61 69 |--------|----.mai|
|000039c0| 6e 28 29 0a 7b 0a 09 2f | 2f 20 67 65 74 20 74 68 |n().{../|/ get th|
|000039d0| 65 20 74 72 61 6e 73 6c | 61 74 69 6f 6e 20 66 6f |e transl|ation fo|
|000039e0| 72 20 74 68 65 20 22 48 | 65 6c 6c 6f 2c 20 77 6f |r the "H|ello, wo|
|000039f0| 72 6c 64 5c 6e 22 20 73 | 74 72 69 6e 67 20 0a 09 |rld\n" s|tring ..|
|00003a00| 2f 2f 20 66 72 6f 6d 20 | 74 68 65 20 6d 65 73 73 |// from |the mess|
|00003a10| 61 67 65 20 63 61 74 61 | 6c 6f 67 20 22 68 65 6c |age cata|log "hel|
|00003a20| 6c 6f 70 72 6f 67 72 61 | 6d 22 0a 09 70 72 69 6e |loprogra|m"..prin|
|00003a30| 74 66 28 64 67 65 74 74 | 65 78 74 28 22 68 65 6c |tf(dgett|ext("hel|
|00003a40| 6c 6f 70 72 6f 67 72 61 | 6d 22 2c 22 48 65 6c 6c |loprogra|m","Hell|
|00003a50| 6f 2c 20 77 6f 72 6c 64 | 5c 6e 22 29 29 3b 0a 7d |o, world|\n"));.}|
|00003a60| 0a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|00003a70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003a80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003a90| 0a 0a 54 68 65 20 4c 43 | 5f 4d 45 53 53 41 47 45 |..The LC|_MESSAGE|
|00003aa0| 53 20 6c 6f 63 61 6c 65 | 20 63 61 74 65 67 6f 72 |S locale| categor|
|00003ab0| 79 20 73 65 74 74 69 6e | 67 20 64 65 74 65 72 6d |y settin|g determ|
|00003ac0| 69 6e 65 73 20 74 68 65 | 20 6c 6f 63 61 6c 65 20 |ines the| locale |
|00003ad0| 6f 66 0a 73 74 72 69 6e | 67 73 20 74 68 61 74 20 |of.strin|gs that |
|00003ae0| 67 65 74 74 65 78 74 28 | 29 20 72 65 74 75 72 6e |gettext(|) return|
|00003af0| 73 2e 20 20 54 68 65 20 | 6d 65 73 73 61 67 65 20 |s. The |message |
|00003b00| 63 61 74 61 6c 6f 67 73 | 20 61 72 65 20 67 65 6e |catalogs| are gen|
|00003b10| 65 72 61 74 65 64 0a 77 | 69 74 68 20 65 69 74 68 |erated.w|ith eith|
|00003b20| 65 72 20 74 68 65 20 69 | 6e 73 74 61 6c 6c 74 78 |er the i|nstalltx|
|00003b30| 74 20 6f 72 20 67 65 6e | 63 61 74 20 63 6f 6d 6d |t or gen|cat comm|
|00003b40| 61 6e 64 73 2e 0a 0a 4e | 6f 20 6f 70 65 6e 69 6e |ands...N|o openin|
|00003b50| 67 20 6f 66 20 66 69 6c | 65 73 20 61 73 20 69 6e |g of fil|es as in|
|00003b60| 20 74 68 65 20 6f 6c 64 | 20 53 59 53 20 56 20 61 | the old| SYS V a|
|00003b70| 6e 64 20 58 2f 4f 70 65 | 6e 20 72 6f 75 74 69 6e |nd X/Ope|n routin|
|00003b80| 65 73 2c 20 61 6e 64 20 | 6e 6f 0a 68 61 6e 64 6c |es, and |no.handl|
|00003b90| 69 6e 67 20 6f 66 20 6d | 65 73 73 61 67 65 20 6e |ing of m|essage n|
|00003ba0| 75 6d 62 65 72 73 20 74 | 68 61 74 20 79 6f 75 20 |umbers t|hat you |
|00003bb0| 6d 75 73 74 20 68 61 76 | 65 20 69 6e 20 61 20 64 |must hav|e in a d|
|00003bc0| 61 74 61 62 61 73 65 20 | 74 6f 0a 61 64 6d 69 6e |atabase |to.admin|
|00003bd0| 69 73 74 65 72 2e 20 20 | 48 6f 77 65 76 65 72 2c |ister. |However,|
|00003be0| 20 74 68 69 73 20 6d 65 | 63 68 61 6e 69 73 6d 20 | this me|chanism |
|00003bf0| 69 73 20 6f 6e 6c 79 20 | 73 75 70 70 6f 72 74 65 |is only |supporte|
|00003c00| 64 20 62 79 20 53 75 6e | 2e 20 20 53 75 6e 0a 74 |d by Sun|. Sun.t|
|00003c10| 72 69 65 64 20 74 6f 20 | 70 75 73 68 20 69 74 20 |ried to |push it |
|00003c20| 69 6e 74 6f 20 43 4f 53 | 45 2c 20 62 75 74 20 77 |into COS|E, but w|
|00003c30| 69 74 68 6f 75 74 20 73 | 75 63 63 65 73 73 2e 20 |ithout s|uccess. |
|00003c40| 0a 0a 54 68 69 73 20 6d | 65 63 68 61 6e 69 73 6d |..This m|echanism|
|00003c50| 20 69 73 20 61 76 61 69 | 6c 61 62 6c 65 20 65 69 | is avai|lable ei|
|00003c60| 74 68 65 20 77 69 74 68 | 20 74 68 65 20 58 76 69 |the with| the Xvi|
|00003c70| 65 77 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 28 |ew envir|onment (|
|00003c80| 74 68 65 0a 73 6f 75 72 | 63 65 20 69 73 20 61 76 |the.sour|ce is av|
|00003c90| 61 69 6c 61 62 6c 65 20 | 77 69 74 68 20 74 68 65 |ailable |with the|
|00003ca0| 20 58 56 69 65 77 20 63 | 6f 64 65 29 2c 20 6f 72 | XView c|ode), or|
|00003cb0| 20 66 72 6f 6d 20 74 68 | 65 20 47 4e 55 20 70 72 | from th|e GNU pr|
|00003cc0| 6f 6a 65 63 74 20 61 74 | 0a 66 74 70 3a 2f 2f 70 |oject at|.ftp://p|
|00003cd0| 72 65 70 2e 61 69 2e 6d | 69 74 2e 65 64 75 2f 70 |rep.ai.m|it.edu/p|
|00003ce0| 75 62 2f 67 6e 75 2f 67 | 65 74 74 65 78 74 2d 30 |ub/gnu/g|ettext-0|
|00003cf0| 2e 37 2e 74 61 72 2e 67 | 7a 2e 20 0a 0a 0a 0a 35 |.7.tar.g|z. ....5|
|00003d00| 2e 33 20 50 4f 53 49 58 | 20 6c 61 6e 67 75 61 67 |.3 POSIX| languag|
|00003d10| 65 20 69 6e 64 65 70 65 | 6e 64 65 6e 74 20 6d 65 |e indepe|ndent me|
|00003d20| 73 73 61 67 65 73 0a 4e | 65 69 74 68 65 72 20 6f |ssages.N|either o|
|00003d30| 66 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 20 74 |f the pr|evious t|
|00003d40| 77 6f 20 6d 65 63 68 61 | 6e 69 73 6d 73 20 69 73 |wo mecha|nisms is|
|00003d50| 20 69 6e 20 74 68 65 20 | 50 4f 53 49 58 20 73 74 | in the |POSIX st|
|00003d60| 61 6e 64 61 72 64 2e 0a | 54 68 65 72 65 20 77 61 |andard..|There wa|
|00003d70| 73 20 6d 75 63 68 20 64 | 69 73 61 67 72 65 65 6d |s much d|isagreem|
|00003d80| 65 6e 74 20 69 6e 20 74 | 68 65 20 50 4f 53 49 58 |ent in t|he POSIX|
|00003d90| 2e 31 20 63 6f 6d 6d 69 | 74 74 65 65 20 61 62 6f |.1 commi|ttee abo|
|00003da0| 75 74 20 75 73 69 6e 67 | 20 74 68 65 0a 67 65 74 |ut using| the.get|
|00003db0| 74 65 78 74 20 72 6f 75 | 74 69 6e 65 73 20 76 73 |text rou|tines vs|
|00003dc0| 2e 20 63 61 74 67 65 74 | 73 20 28 58 50 47 29 2e |. catget|s (XPG).|
|00003dd0| 20 20 49 6e 20 74 68 65 | 20 65 6e 64 20 74 68 65 | In the| end the|
|00003de0| 20 63 6f 6d 6d 69 74 74 | 65 65 20 63 6f 75 6c 64 | committ|ee could|
|00003df0| 6e 27 74 0a 61 67 72 65 | 65 20 6f 6e 20 61 6e 79 |n't.agre|e on any|
|00003e00| 74 68 69 6e 67 2c 20 73 | 6f 20 6e 6f 20 6d 65 73 |thing, s|o no mes|
|00003e10| 73 61 67 69 6e 67 20 73 | 79 73 74 65 6d 20 77 61 |saging s|ystem wa|
|00003e20| 73 20 69 6e 63 6c 75 64 | 65 64 20 61 73 20 70 61 |s includ|ed as pa|
|00003e30| 72 74 20 6f 66 20 74 68 | 65 0a 73 74 61 6e 64 61 |rt of th|e.standa|
|00003e40| 72 64 2e 20 49 20 62 65 | 6c 69 65 76 65 20 74 68 |rd. I be|lieve th|
|00003e50| 65 20 69 6e 66 6f 72 6d | 61 74 69 76 65 20 61 6e |e inform|ative an|
|00003e60| 6e 65 78 20 6f 66 20 74 | 68 65 20 73 74 61 6e 64 |nex of t|he stand|
|00003e70| 61 72 64 20 69 6e 63 6c | 75 64 65 73 20 74 68 65 |ard incl|udes the|
|00003e80| 0a 58 50 47 33 20 6d 65 | 73 73 61 67 69 6e 67 20 |.XPG3 me|ssaging |
|00003e90| 69 6e 74 65 72 66 61 63 | 65 73 2c 20 22 2e 2e 2e |interfac|es, "...|
|00003ea0| 61 73 20 61 6e 20 65 78 | 61 6d 70 6c 65 20 6f 66 |as an ex|ample of|
|00003eb0| 20 61 20 6d 65 73 73 61 | 67 69 6e 67 20 73 79 73 | a messa|ging sys|
|00003ec0| 74 65 6d 0a 74 68 61 74 | 20 68 61 73 20 62 65 65 |tem.that| has bee|
|00003ed0| 6e 20 69 6d 70 6c 65 6d | 65 6e 74 65 64 2e 2e 2e |n implem|ented...|
|00003ee0| 22 0a 0a 54 68 65 79 20 | 77 65 72 65 20 76 65 72 |"..They |were ver|
|00003ef0| 79 20 63 61 72 65 66 75 | 6c 20 6e 6f 74 20 74 6f |y carefu|l not to|
|00003f00| 20 73 61 79 20 61 6e 79 | 77 68 65 72 65 20 74 68 | say any|where th|
|00003f10| 61 74 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 75 73 |at you s|hould us|
|00003f20| 65 20 6f 6e 65 20 73 65 | 74 0a 6f 66 20 69 6e 74 |e one se|t.of int|
|00003f30| 65 72 66 61 63 65 73 20 | 6f 76 65 72 20 74 68 65 |erfaces |over the|
|00003f40| 20 6f 74 68 65 72 2e 0a | 0a 0a 0a 36 2e 20 4f 74 | other..|...6. Ot|
|00003f50| 68 65 72 20 6c 6f 63 61 | 6c 69 7a 61 74 69 6f 6e |her loca|lization|
|00003f60| 20 61 73 70 65 63 74 73 | 20 69 6e 20 49 53 4f 2f | aspects| in ISO/|
|00003f70| 41 4e 53 49 20 43 20 28 | 61 6e 64 20 50 4f 53 49 |ANSI C (|and POSI|
|00003f80| 58 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 73 29 0a |X enviro|nments).|
|00003f90| 46 6f 72 20 61 20 6d 6f | 72 65 20 74 68 6f 72 6f |For a mo|re thoro|
|00003fa0| 75 67 68 20 64 69 73 63 | 75 73 73 69 6f 6e 20 6f |ugh disc|ussion o|
|00003fb0| 66 20 6c 6f 63 61 6c 69 | 7a 61 74 69 6f 6e 20 61 |f locali|zation a|
|00003fc0| 6e 64 0a 69 6e 74 65 72 | 6e 61 74 69 6f 6e 61 6c |nd.inter|national|
|00003fd0| 69 7a 61 74 69 6f 6e 20 | 28 61 6b 61 2e 20 69 31 |ization |(aka. i1|
|00003fe0| 38 6e 29 2c 20 63 68 65 | 63 6b 20 79 6f 75 72 20 |8n), che|ck your |
|00003ff0| 73 79 73 74 65 6d 20 76 | 65 6e 64 6f 72 73 0a 64 |system v|endors.d|
|00004000| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 2c 20 61 6e |ocumenta|tion, an|
|00004010| 64 20 74 68 65 20 43 20 | 6c 69 62 72 61 72 79 20 |d the C |library |
|00004020| 6d 61 6e 75 61 6c 20 77 | 68 69 63 68 20 63 6f 6d |manual w|hich com|
|00004030| 65 73 20 77 69 74 68 20 | 74 68 65 20 46 53 46 27 |es with |the FSF'|
|00004040| 73 0a 67 6c 69 62 63 20 | 6c 69 62 72 61 72 79 20 |s.glibc |library |
|00004050| 28 43 68 61 70 74 65 72 | 20 31 39 2c 20 27 4c 6f |(Chapter| 19, 'Lo|
|00004060| 63 61 6c 65 73 20 61 6e | 64 20 49 6e 74 65 72 6e |cales an|d Intern|
|00004070| 61 74 69 6f 6e 61 6c 69 | 7a 61 74 69 6f 6e 27 29 |ationali|zation')|
|00004080| 2e 0a 0a 0a 0a 37 2e 20 | 49 6e 74 65 72 6e 61 74 |.....7. |Internat|
|00004090| 69 6f 6e 61 6c 69 7a 61 | 74 69 6f 6e 20 75 6e 64 |ionaliza|tion und|
|000040a0| 65 72 20 58 31 31 0a 57 | 68 69 6c 65 20 58 31 31 |er X11.W|hile X11|
|000040b0| 20 69 73 20 66 61 72 74 | 68 65 72 20 74 68 61 6e | is fart|her than|
|000040c0| 20 6d 6f 73 74 20 73 79 | 73 74 65 6d 20 73 6f 66 | most sy|stem sof|
|000040d0| 74 77 61 72 65 20 77 68 | 65 6e 20 69 74 20 63 6f |tware wh|en it co|
|000040e0| 6d 65 73 20 74 6f 0a 69 | 6e 74 65 72 6e 61 74 69 |mes to.i|nternati|
|000040f0| 6f 6e 61 6c 69 7a 61 74 | 69 6f 6e 2c 20 69 74 20 |onalizat|ion, it |
|00004100| 73 74 69 6c 6c 20 63 6f | 6e 74 61 69 6e 73 20 6d |still co|ntains m|
|00004110| 61 6e 79 20 62 75 67 73 | 2e 20 20 41 20 6e 75 6d |any bugs|. A num|
|00004120| 62 65 72 20 6f 66 20 62 | 75 67 0a 66 69 78 65 73 |ber of b|ug.fixes|
|00004130| 20 63 61 6e 20 62 65 20 | 66 6f 75 6e 64 20 61 74 | can be |found at|
|00004140| 20 55 52 4c 20 68 74 74 | 70 3a 2f 2f 77 77 77 2e | URL htt|p://www.|
|00004150| 64 74 65 6b 2e 63 68 61 | 6c 6d 65 72 73 2e 73 65 |dtek.cha|lmers.se|
|00004160| 3a 38 30 2f 7e 6d 61 66 | 2f 69 31 38 6e 2f 2e 0a |:80/~maf|/i18n/..|
|00004170| 0a 37 2e 31 20 4f 75 74 | 70 75 74 0a 54 6f 20 6f |.7.1 Out|put.To o|
|00004180| 75 74 70 75 74 20 74 65 | 78 74 20 65 6e 63 6f 64 |utput te|xt encod|
|00004190| 65 64 20 77 69 74 68 20 | 49 53 4f 20 38 38 35 39 |ed with |ISO 8859|
|000041a0| 2d 31 20 75 6e 64 65 72 | 20 58 31 31 2c 20 73 69 |-1 under| X11, si|
|000041b0| 6d 70 6c 79 20 69 6e 76 | 6f 6b 65 20 74 68 65 20 |mply inv|oke the |
|000041c0| 58 0a 64 69 73 70 6c 61 | 79 20 72 6f 75 74 69 6e |X.displa|y routin|
|000041d0| 65 73 20 77 69 74 68 20 | 38 20 62 69 74 20 63 68 |es with |8 bit ch|
|000041e0| 61 72 61 63 74 65 72 73 | 20 61 73 20 79 6f 75 20 |aracters| as you |
|000041f0| 77 6f 75 6c 64 20 75 73 | 65 20 74 68 65 6d 20 77 |would us|e them w|
|00004200| 69 74 68 0a 37 2d 62 69 | 74 20 41 53 43 49 49 2e |ith.7-bi|t ASCII.|
|00004210| 20 20 59 6f 75 20 73 68 | 6f 75 6c 64 20 68 6f 77 | You sh|ould how|
|00004220| 65 76 65 72 20 63 68 6f | 6f 73 65 20 61 20 66 6f |ever cho|ose a fo|
|00004230| 6e 74 20 77 68 69 63 68 | 20 63 6f 6e 74 61 69 6e |nt which| contain|
|00004240| 73 20 62 69 74 6d 61 70 | 73 0a 66 6f 72 20 74 68 |s bitmap|s.for th|
|00004250| 65 73 65 20 63 68 61 72 | 61 63 74 65 72 73 2e 20 |ese char|acters. |
|00004260| 20 59 6f 75 20 63 61 6e | 20 75 73 65 20 74 68 65 | You can| use the|
|00004270| 20 78 66 64 20 75 74 69 | 6c 69 74 79 20 74 6f 20 | xfd uti|lity to |
|00004280| 64 69 73 70 6c 61 79 20 | 61 20 66 6f 6e 74 0a 74 |display |a font.t|
|00004290| 6f 20 76 65 72 69 66 79 | 20 74 68 61 74 20 69 74 |o verify| that it|
|000042a0| 20 63 6f 6e 74 61 69 6e | 73 20 61 20 66 75 6c 6c | contain|s a full|
|000042b0| 20 73 65 74 20 6f 66 20 | 63 68 61 72 61 63 74 65 | set of |characte|
|000042c0| 72 73 2e 0a 0a 0a 37 2e | 32 20 49 6e 70 75 74 0a |rs....7.|2 Input.|
|000042d0| 49 66 20 79 6f 75 20 75 | 73 65 20 61 20 6e 61 74 |If you u|se a nat|
|000042e0| 69 6f 6e 61 6c 20 6b 65 | 79 62 6f 61 72 64 20 28 |ional ke|yboard (|
|000042f0| 74 68 61 74 20 69 73 20 | 61 20 6b 65 79 62 6f 61 |that is |a keyboa|
|00004300| 72 64 2c 20 77 68 69 63 | 68 20 68 61 73 20 64 69 |rd, whic|h has di|
|00004310| 73 74 69 6e 63 74 0a 6b | 65 79 73 20 66 6f 72 20 |stinct.k|eys for |
|00004320| 79 6f 75 72 20 63 6f 75 | 6e 74 72 69 65 73 20 73 |your cou|ntries s|
|00004330| 70 65 63 69 61 6c 20 63 | 68 61 72 61 63 74 65 72 |pecial c|haracter|
|00004340| 73 29 2c 20 69 6e 70 75 | 74 74 69 6e 67 20 61 63 |s), inpu|tting ac|
|00004350| 63 65 6e 74 73 20 69 73 | 0a 73 74 72 61 69 67 68 |cents is|.straigh|
|00004360| 74 20 66 6f 72 77 61 72 | 64 20 61 6e 64 20 79 6f |t forwar|d and yo|
|00004370| 75 27 6c 6c 20 67 65 74 | 20 74 68 65 20 63 6f 72 |u'll get| the cor|
|00004380| 72 65 73 70 6f 6e 64 69 | 6e 67 20 63 68 61 72 61 |respondi|ng chara|
|00004390| 63 74 65 72 73 20 62 79 | 20 75 73 69 6e 67 0a 74 |cters by| using.t|
|000043a0| 68 65 20 58 31 31 20 69 | 6e 70 75 74 20 66 75 6e |he X11 i|nput fun|
|000043b0| 63 74 69 6f 6e 73 2e 0a | 0a 53 6f 6d 65 74 69 6d |ctions..|.Sometim|
|000043c0| 65 73 20 69 74 20 6d 61 | 79 20 62 65 20 6e 65 63 |es it ma|y be nec|
|000043d0| 65 73 73 61 72 79 20 74 | 6f 20 69 6e 70 75 74 20 |essary t|o input |
|000043e0| 63 68 61 72 61 63 74 65 | 72 73 20 66 6f 72 20 77 |characte|rs for w|
|000043f0| 68 69 63 68 20 74 68 65 | 72 65 20 61 72 65 0a 6e |hich the|re are.n|
|00004400| 6f 20 6b 65 79 73 20 6f | 6e 20 79 6f 75 72 20 6b |o keys o|n your k|
|00004410| 65 79 62 6f 61 72 64 20 | 28 65 2e 67 2e 20 69 66 |eyboard |(e.g. if|
|00004420| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 65 6e 74 | you wan|t to ent|
|00004430| 65 72 20 74 68 65 20 47 | 65 72 6d 61 6e 20 27 df |er the G|erman '.|
|00004440| 27 0a 66 72 6f 6d 20 61 | 20 46 72 65 6e 63 68 20 |'.from a| French |
|00004450| 6b 65 79 62 6f 61 72 64 | 29 2e 20 20 0a 0a 0a 22 |keyboard|). ..."|
|00004460| 58 31 31 52 35 20 61 6e | 64 20 58 31 31 52 36 20 |X11R5 an|d X11R6 |
|00004470| 62 6f 74 68 20 68 61 76 | 65 20 65 78 74 65 6e 73 |both hav|e extens|
|00004480| 69 76 65 20 73 75 70 70 | 6f 72 74 20 66 6f 72 20 |ive supp|ort for |
|00004490| 69 31 38 6e 2c 20 62 75 | 74 20 64 75 65 20 74 6f |i18n, bu|t due to|
|000044a0| 20 61 0a 76 61 72 69 65 | 74 79 20 6f 66 20 66 61 | a.varie|ty of fa|
|000044b0| 63 74 6f 72 73 20 74 68 | 65 20 52 35 20 69 31 38 |ctors th|e R5 i18|
|000044c0| 6e 20 77 61 73 20 6e 6f | 74 20 77 65 6c 6c 20 75 |n was no|t well u|
|000044d0| 6e 64 65 72 73 74 6f 6f | 64 20 6f 72 20 77 69 64 |nderstoo|d or wid|
|000044e0| 65 6c 79 0a 75 73 65 64 | 2e 20 20 4d 61 6e 79 20 |ely.used|. Many |
|000044f0| 70 65 6f 70 6c 65 20 72 | 65 73 6f 72 74 65 64 20 |people r|esorted |
|00004500| 74 6f 20 61 20 77 6f 72 | 6b 2d 61 72 6f 75 6e 64 |to a wor|k-around|
|00004510| 20 61 6e 64 20 6d 69 67 | 68 74 20 68 61 76 65 20 | and mig|ht have |
|00004520| 62 65 65 6e 0a 64 69 73 | 61 70 70 6f 69 6e 74 65 |been.dis|appointe|
|00004530| 64 20 77 68 65 6e 20 52 | 36 20 64 69 64 20 6e 6f |d when R|6 did no|
|00004540| 74 20 69 6e 63 6c 75 64 | 65 20 74 68 69 73 20 66 |t includ|e this f|
|00004550| 65 61 74 75 72 65 2e 20 | 20 49 74 20 69 73 20 69 |eature. | It is i|
|00004560| 6d 70 6f 72 74 61 6e 74 | 0a 74 6f 20 72 65 63 6f |mportant|.to reco|
|00004570| 67 6e 69 7a 65 20 74 68 | 61 74 20 74 68 65 20 63 |gnize th|at the c|
|00004580| 6f 72 72 65 63 74 20 75 | 73 65 20 6f 66 20 52 35 |orrect u|se of R5|
|00004590| 20 61 6e 64 20 52 36 20 | 69 31 38 6e 20 66 65 61 | and R6 |i18n fea|
|000045a0| 74 75 72 65 73 20 77 69 | 6c 6c 0a 65 6e 73 75 72 |tures wi|ll.ensur|
|000045b0| 65 20 6d 61 78 69 6d 75 | 6d 20 70 6f 72 74 61 62 |e maximu|m portab|
|000045c0| 69 6c 69 74 79 20 6f 66 | 20 79 6f 75 72 20 70 72 |ility of| your pr|
|000045d0| 6f 67 72 61 6d 2e 22 20 | 5b 58 20 43 6f 6e 73 6f |ogram." |[X Conso|
|000045e0| 72 74 69 75 6d 27 73 20 | 76 69 65 77 5d 0a 0a 55 |rtium's |view]..U|
|000045f0| 6e 66 6f 72 74 75 6e 61 | 74 65 6c 79 2c 20 6e 6f |nfortuna|tely, no|
|00004600| 74 20 65 76 65 6e 20 74 | 68 65 20 78 74 65 72 6d |t even t|he xterm|
|00004610| 20 74 65 72 6d 69 6e 61 | 6c 20 65 6d 75 6c 61 74 | termina|l emulat|
|00004620| 6f 72 20 73 75 70 70 6c | 69 65 64 20 77 69 74 68 |or suppl|ied with|
|00004630| 20 74 68 65 0a 58 31 31 | 20 64 69 73 74 72 69 62 | the.X11| distrib|
|00004640| 75 74 69 6f 6e 20 62 79 | 20 74 68 65 20 58 20 43 |ution by| the X C|
|00004650| 6f 6e 73 6f 72 74 69 75 | 6d 20 73 75 70 70 6f 72 |onsortiu|m suppor|
|00004660| 74 73 20 74 68 69 73 20 | 69 6e 70 75 74 20 6d 65 |ts this |input me|
|00004670| 74 68 6f 64 0a 6d 65 63 | 68 61 6e 69 73 6d 2e 20 |thod.mec|hanism. |
|00004680| 20 54 68 65 20 6c 61 63 | 6b 20 6f 66 20 6d 69 73 | The lac|k of mis|
|00004690| 73 69 6e 67 20 63 6f 64 | 65 20 73 61 6d 70 6c 65 |sing cod|e sample|
|000046a0| 73 20 28 61 6e 64 20 73 | 75 70 70 6f 72 74 20 66 |s (and s|upport f|
|000046b0| 6f 72 20 74 68 69 73 0a | 66 65 61 74 75 72 65 20 |or this.|feature |
|000046c0| 69 6e 20 73 6f 6d 65 20 | 6e 6f 6e 2d 65 73 73 65 |in some |non-esse|
|000046d0| 6e 74 69 61 6c 2c 20 62 | 75 74 20 77 69 64 65 6c |ntial, b|ut widel|
|000046e0| 79 20 75 73 65 64 20 58 | 31 31 20 70 61 72 74 73 |y used X|11 parts|
|000046f0| 29 20 6d 61 79 20 68 61 | 76 65 0a 63 6f 6e 74 72 |) may ha|ve.contr|
|00004700| 69 62 75 74 65 64 20 74 | 6f 20 74 68 69 73 20 73 |ibuted t|o this s|
|00004710| 69 74 75 61 74 69 6f 6e | 2e 0a 0a 0a 46 6f 6f 74 |ituation|....Foot|
|00004720| 6e 6f 74 65 3a 20 41 6d | 6f 6e 67 73 74 20 6f 74 |note: Am|ongst ot|
|00004730| 68 65 72 20 72 65 61 73 | 6f 6e 73 2c 20 74 68 65 |her reas|ons, the|
|00004740| 20 58 20 43 6f 6e 73 6f | 72 74 69 75 6d 20 64 65 | X Conso|rtium de|
|00004750| 63 69 73 69 6f 6e 20 6e | 6f 74 20 74 6f 20 61 64 |cision n|ot to ad|
|00004760| 64 0a 73 75 70 70 6f 72 | 74 20 66 6f 72 20 69 6e |d.suppor|t for in|
|00004770| 70 75 74 20 6d 65 74 68 | 6f 64 73 20 74 6f 20 74 |put meth|ods to t|
|00004780| 68 65 20 58 61 77 20 41 | 74 68 65 6e 61 20 77 69 |he Xaw A|thena wi|
|00004790| 64 67 65 74 20 63 6f 6e | 74 72 69 62 75 74 65 73 |dget con|tributes|
|000047a0| 20 74 6f 20 74 68 69 73 | 0a 73 69 74 75 61 74 69 | to this|.situati|
|000047b0| 6f 6e 2e 20 20 58 61 77 | 20 69 73 20 6f 66 66 69 |on. Xaw| is offi|
|000047c0| 63 69 61 6c 6c 79 20 6e | 6f 74 20 73 75 70 70 6f |cially n|ot suppo|
|000047d0| 72 74 65 64 20 62 79 20 | 74 68 65 20 58 20 43 6f |rted by |the X Co|
|000047e0| 6e 73 6f 72 74 69 75 6d | 2c 20 61 6e 64 0a 74 68 |nsortium|, and.th|
|000047f0| 75 73 20 68 61 73 20 6f | 6e 6c 79 20 6d 61 72 67 |us has o|nly marg|
|00004800| 69 6e 61 6c 6c 79 20 62 | 65 65 6e 20 69 6d 70 72 |inally b|een impr|
|00004810| 6f 76 65 64 20 73 69 6e | 63 65 20 58 31 31 52 34 |oved sin|ce X11R4|
|00004820| 2e 20 20 48 6f 77 65 76 | 65 72 2c 20 6d 61 6e 79 |. Howev|er, many|
|00004830| 0a 75 73 65 72 73 20 28 | 61 6e 64 20 6d 75 63 68 |.users (|and much|
|00004840| 20 6f 66 20 74 68 65 20 | 50 44 20 73 6f 66 74 77 | of the |PD softw|
|00004850| 61 72 65 29 20 6c 69 76 | 65 20 69 6e 20 61 6e 20 |are) liv|e in an |
|00004860| 58 61 77 2d 6f 6e 6c 79 | 20 77 6f 72 6c 64 2c 20 |Xaw-only| world, |
|00004870| 73 6f 20 74 68 65 79 0a | 77 69 6c 6c 20 6e 6f 74 |so they.|will not|
|00004880| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 62 65 6e 65 | be able| to bene|
|00004890| 66 69 74 20 66 72 6f 6d | 20 74 68 69 73 20 69 31 |fit from| this i1|
|000048a0| 38 6e 20 65 66 66 6f 72 | 74 2e 0a 0a 58 31 31 20 |8n effor|t...X11 |
|000048b0| 52 35 20 61 6e 64 20 52 | 36 20 73 75 70 70 6f 72 |R5 and R|6 suppor|
|000048c0| 74 20 69 6e 70 75 74 20 | 6d 65 74 68 6f 64 73 20 |t input |methods |
|000048d0| 66 6f 72 20 65 6e 74 65 | 72 69 6e 67 20 6e 6f 6e |for ente|ring non|
|000048e0| 2d 41 53 43 49 49 2c 20 | 61 6e 64 0a 64 69 73 70 |-ASCII, |and.disp|
|000048f0| 6c 61 79 69 6e 67 20 61 | 6e 64 20 63 6f 6e 66 69 |laying a|nd confi|
|00004900| 67 75 72 69 6e 67 20 74 | 65 78 74 2c 20 6d 65 6e |guring t|ext, men|
|00004910| 75 73 20 65 74 63 2e 20 | 66 6f 72 20 61 20 77 69 |us etc. |for a wi|
|00004920| 64 65 20 76 61 72 69 65 | 74 79 20 6f 66 0a 6c 61 |de varie|ty of.la|
|00004930| 6e 67 75 61 67 65 73 2e | 20 20 54 68 69 73 20 69 |nguages.| This i|
|00004940| 6e 70 75 74 20 6d 65 74 | 68 6f 64 20 68 61 73 20 |nput met|hod has |
|00004950| 74 6f 20 62 65 20 69 6e | 73 74 61 6c 6c 65 64 20 |to be in|stalled |
|00004960| 62 79 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |by the a|pplicati|
|00004970| 6f 6e 0a 62 79 20 63 61 | 6c 6c 73 20 74 6f 20 74 |on.by ca|lls to t|
|00004980| 68 65 20 58 6c 69 62 20 | 6c 69 62 72 61 72 79 20 |he Xlib |library |
|00004990| 28 6f 72 20 61 6e 20 58 | 74 20 74 6f 6f 6c 6b 69 |(or an X|t toolki|
|000049a0| 74 20 63 61 6c 6c 29 2e | 0a 0a 5b 55 6e 64 65 72 |t call).|..[Under|
|000049b0| 20 58 31 31 52 35 2c 20 | 73 6f 6d 65 20 58 20 73 | X11R5, |some X s|
|000049c0| 65 72 76 65 72 73 20 28 | 6e 6f 74 61 62 6c 79 20 |ervers (|notably |
|000049d0| 74 68 65 20 58 73 75 6e | 20 73 65 72 76 65 72 29 |the Xsun| server)|
|000049e0| 20 77 69 6c 6c 20 6c 65 | 74 20 79 6f 75 0a 65 6e | will le|t you.en|
|000049f0| 74 65 72 20 49 53 4f 20 | 63 68 61 72 61 63 74 65 |ter ISO |characte|
|00004a00| 72 73 20 62 79 20 73 75 | 70 70 6c 79 69 6e 67 20 |rs by su|pplying |
|00004a10| 61 20 62 75 69 6c 74 2d | 69 6e 20 65 73 63 61 70 |a built-|in escap|
|00004a20| 65 20 6d 65 63 68 61 6e | 69 73 6d 2c 20 69 66 20 |e mechan|ism, if |
|00004a30| 6e 6f 0a 6b 65 79 73 20 | 66 6f 72 20 74 68 65 73 |no.keys |for thes|
|00004a40| 65 20 63 68 61 72 61 63 | 74 65 72 73 20 61 72 65 |e charac|ters are|
|00004a50| 20 6f 6e 20 79 6f 75 72 | 20 6b 65 79 62 6f 61 72 | on your| keyboar|
|00004a60| 64 2c 20 61 6e 64 20 77 | 69 6c 6c 20 70 61 73 73 |d, and w|ill pass|
|00004a70| 20 61 6c 6f 6e 67 0a 61 | 6e 64 20 64 69 73 70 6c | along.a|nd displ|
|00004a80| 61 79 20 49 53 4f 20 38 | 38 35 39 2d 31 2e 20 20 |ay ISO 8|859-1. |
|00004a90| 54 68 69 73 20 68 61 63 | 6b 20 6f 62 76 69 61 74 |This hac|k obviat|
|00004aa0| 65 64 20 74 68 65 20 6e | 65 65 64 20 74 6f 20 69 |ed the n|eed to i|
|00004ab0| 6e 73 74 61 6c 6c 20 61 | 6e 0a 69 6e 70 75 74 20 |nstall a|n.input |
|00004ac0| 6d 65 74 68 6f 64 2c 20 | 62 75 74 20 77 61 73 20 |method, |but was |
|00004ad0| 6c 65 73 73 20 66 6c 65 | 78 69 62 6c 65 2e 5d 20 |less fle|xible.] |
|00004ae0| 20 0a 0a 0a 49 66 20 79 | 6f 75 20 61 72 65 20 75 | ...If y|ou are u|
|00004af0| 73 69 6e 67 20 61 20 74 | 6f 6f 6c 6b 69 74 2c 20 |sing a t|oolkit, |
|00004b00| 69 74 20 69 73 20 71 75 | 69 74 65 20 73 69 6d 70 |it is qu|ite simp|
|00004b10| 6c 65 20 74 6f 20 73 75 | 70 70 6f 72 74 20 6c 6f |le to su|pport lo|
|00004b20| 63 61 6c 69 7a 61 74 69 | 6f 6e 0a 6f 66 20 79 6f |calizati|on.of yo|
|00004b30| 75 72 20 58 31 31 20 63 | 6f 64 65 3a 20 0a 49 66 |ur X11 c|ode: .If|
|00004b40| 20 79 6f 75 27 72 65 20 | 75 73 69 6e 67 20 61 20 | you're |using a |
|00004b50| 74 6f 6f 6c 6b 69 74 20 | 2d 2d 20 58 74 20 61 6e |toolkit |-- Xt an|
|00004b60| 64 20 61 20 77 69 64 67 | 65 74 20 73 65 74 20 6c |d a widg|et set l|
|00004b70| 69 6b 65 20 4d 6f 74 69 | 66 20 6f 72 20 52 36 20 |ike Moti|f or R6 |
|00004b80| 58 61 77 20 2d 2d 0a 79 | 6f 75 20 6e 65 65 64 20 |Xaw --.y|ou need |
|00004b90| 6f 6e 6c 79 20 61 64 64 | 20 61 20 73 69 6e 67 6c |only add| a singl|
|00004ba0| 65 20 6c 69 6e 65 20 6f | 66 20 63 6f 64 65 20 74 |e line o|f code t|
|00004bb0| 6f 20 79 6f 75 72 20 73 | 6f 75 72 63 65 2e 20 42 |o your s|ource. B|
|00004bc0| 65 66 6f 72 65 20 61 6e | 79 20 6f 74 68 65 72 20 |efore an|y other |
|00004bd0| 0a 63 61 6c 6c 73 20 74 | 6f 20 58 74 2c 20 61 64 |.calls t|o Xt, ad|
|00004be0| 64 20 61 20 63 61 6c 6c | 20 74 6f 20 58 74 53 65 |d a call| to XtSe|
|00004bf0| 74 4c 61 6e 67 75 61 67 | 65 50 72 6f 63 2c 20 65 |tLanguag|eProc, e|
|00004c00| 2e 67 2e 3a 0a 20 0a 20 | 20 20 20 69 6e 74 20 6d |.g.:. . | int m|
|00004c10| 61 69 6e 20 28 69 6e 74 | 20 61 72 67 63 2c 20 63 |ain (int| argc, c|
|00004c20| 68 61 72 2a 2a 20 61 72 | 67 76 29 0a 20 20 20 20 |har** ar|gv). |
|00004c30| 7b 0a 20 20 20 20 20 20 | 20 20 2e 2e 2e 0a 20 20 |{. | .... |
|00004c40| 20 20 20 20 20 20 58 74 | 53 65 74 4c 61 6e 67 75 | Xt|SetLangu|
|00004c50| 61 67 65 50 72 6f 63 20 | 28 4e 55 4c 4c 2c 20 4e |ageProc |(NULL, N|
|00004c60| 55 4c 4c 2c 20 4e 55 4c | 4c 29 3b 0a 20 20 20 20 |ULL, NUL|L);. |
|00004c70| 20 20 20 20 74 6f 70 20 | 3d 20 58 74 41 70 70 49 | top |= XtAppI|
|00004c80| 6e 69 74 69 61 6c 69 7a | 65 20 28 20 2e 2e 2e 20 |nitializ|e ( ... |
|00004c90| 29 3b 0a 20 20 20 20 20 | 20 20 20 2e 2e 2e 0a 20 |);. | .... |
|00004ca0| 20 20 20 7d 0a 0a 54 68 | 65 20 4c 41 4e 47 20 61 | }..Th|e LANG a|
|00004cb0| 6e 64 20 4c 43 5f 78 78 | 78 20 65 6e 76 69 72 6f |nd LC_xx|x enviro|
|00004cc0| 6e 6d 65 6e 74 20 76 61 | 72 69 61 62 6c 65 73 20 |nment va|riables |
|00004cd0| 28 73 65 65 20 73 65 63 | 74 69 6f 6e 20 33 29 20 |(see sec|tion 3) |
|00004ce0| 77 69 6c 6c 20 74 68 65 | 6e 20 62 65 0a 75 73 65 |will the|n be.use|
|00004cf0| 64 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 20 74 |d to det|ermine t|
|00004d00| 68 65 20 27 69 6e 70 75 | 74 20 6d 65 74 68 6f 64 |he 'inpu|t method|
|00004d10| 27 20 66 6f 72 20 74 68 | 69 73 20 58 20 61 70 70 |' for th|is X app|
|00004d20| 6c 69 63 61 74 69 6f 6e | 2e 20 20 54 68 69 73 0a |lication|. This.|
|00004d30| 69 6e 70 75 74 20 6d 65 | 74 68 6f 64 20 69 73 20 |input me|thod is |
|00004d40| 72 65 73 70 6f 6e 73 69 | 62 6c 65 20 66 6f 72 20 |responsi|ble for |
|00004d50| 6d 61 6e 61 67 69 6e 67 | 20 43 4f 4d 50 4f 53 45 |managing| COMPOSE|
|00004d60| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 71 75 65 | charact|er seque|
|00004d70| 6e 63 65 73 0a 6f 72 20 | 61 6e 79 20 6f 74 68 65 |nces.or |any othe|
|00004d80| 72 20 69 6e 70 75 74 20 | 6d 65 63 68 61 6e 69 73 |r input |mechanis|
|00004d90| 6d 20 66 6f 72 20 74 68 | 69 73 20 70 61 72 74 69 |m for th|is parti|
|00004da0| 63 75 6c 61 72 20 69 6d | 70 6c 65 6d 65 6e 74 61 |cular im|plementa|
|00004db0| 74 69 6f 6e 2e 20 20 41 | 6c 73 6f 0a 73 65 65 20 |tion. A|lso.see |
|00004dc0| 73 65 63 74 69 6f 6e 20 | 39 20 6f 66 20 66 74 70 |section |9 of ftp|
|00004dd0| 3a 2f 2f 66 74 70 2e 76 | 6c 73 69 76 69 65 2e 74 |://ftp.v|lsivie.t|
|00004de0| 75 77 69 65 6e 2e 61 63 | 2e 61 74 2f 70 75 62 2f |uwien.ac|.at/pub/|
|00004df0| 38 62 69 74 2f 46 41 51 | 2d 49 53 4f 2d 38 38 35 |8bit/FAQ|-ISO-885|
|00004e00| 39 2d 31 2c 0a 74 68 65 | 20 46 41 51 20 6f 6e 20 |9-1,.the| FAQ on |
|00004e10| 49 53 4f 20 38 38 35 39 | 2d 31 20 75 73 61 67 65 |ISO 8859|-1 usage|
|00004e20| 2e 0a 0a 0a 37 2e 33 20 | 54 6f 6f 6c 6b 69 74 73 |....7.3 |Toolkits|
|00004e30| 2c 20 57 69 64 67 65 74 | 73 2c 20 61 6e 64 20 49 |, Widget|s, and I|
|00004e40| 31 38 4e 0a 54 68 65 20 | 70 72 65 66 65 72 72 65 |18N.The |preferre|
|00004e50| 64 20 77 61 79 20 6f 66 | 20 69 6e 70 75 74 69 6e |d way of| inputin|
|00004e60| 67 20 6e 61 74 69 6f 6e | 61 6c 20 63 68 61 72 61 |g nation|al chara|
|00004e70| 63 74 65 72 73 20 77 68 | 65 6e 20 61 20 6e 61 74 |cters wh|en a nat|
|00004e80| 69 6f 6e 61 6c 0a 6b 65 | 79 62 6f 61 72 64 20 69 |ional.ke|yboard i|
|00004e90| 73 20 6e 6f 74 20 61 76 | 61 69 6c 61 62 6c 65 20 |s not av|ailable |
|00004ea0| 69 73 20 6f 6e 65 2f 73 | 65 76 65 72 61 6c 20 69 |is one/s|everal i|
|00004eb0| 6e 70 75 74 20 6d 65 74 | 68 6f 64 73 2e 20 20 54 |nput met|hods. T|
|00004ec0| 68 65 73 65 20 69 6e 70 | 75 74 0a 6d 65 74 68 6f |hese inp|ut.metho|
|00004ed0| 64 73 20 77 69 6c 6c 20 | 74 68 65 6e 20 73 75 70 |ds will |then sup|
|00004ee0| 70 6f 72 74 20 76 61 72 | 69 6f 75 73 20 6b 69 6e |port var|ious kin|
|00004ef0| 64 73 20 6f 66 20 63 6f | 6d 70 6f 73 65 20 73 65 |ds of co|mpose se|
|00004f00| 71 75 65 6e 63 65 73 20 | 74 6f 20 65 6e 74 65 72 |quences |to enter|
|00004f10| 0a 6e 61 74 69 6f 6e 61 | 6c 20 63 68 61 72 61 63 |.nationa|l charac|
|00004f20| 74 65 72 73 2e 0a 0a 54 | 68 65 20 65 6e 76 69 72 |ters...T|he envir|
|00004f30| 6f 6e 6d 65 6e 74 20 76 | 61 72 69 61 62 6c 65 73 |onment v|ariables|
|00004f40| 20 4c 41 4e 47 20 61 6e | 64 2f 6f 72 20 4c 43 5f | LANG an|d/or LC_|
|00004f50| 78 78 78 20 73 65 6c 65 | 63 74 20 74 68 65 20 6c |xxx sele|ct the l|
|00004f60| 61 6e 67 75 61 67 65 20 | 66 6f 72 0a 74 68 65 20 |anguage |for.the |
|00004f70| 49 6e 70 75 74 20 4d 65 | 74 68 6f 64 20 28 49 4d |Input Me|thod (IM|
|00004f80| 29 2c 20 62 75 74 20 69 | 66 20 73 65 76 65 72 61 |), but i|f severa|
|00004f90| 6c 20 69 6e 70 75 74 20 | 6d 65 74 68 6f 64 73 20 |l input |methods |
|00004fa0| 65 78 69 73 74 2c 20 74 | 68 65 0a 65 6e 76 69 72 |exist, t|he.envir|
|00004fb0| 6f 6e 6d 65 6e 74 20 76 | 61 72 69 61 62 6c 65 20 |onment v|ariable |
|00004fc0| 58 4d 4f 44 49 46 49 45 | 52 53 20 63 61 6e 20 62 |XMODIFIE|RS can b|
|00004fd0| 65 20 75 73 65 64 20 74 | 6f 20 73 65 6c 65 63 74 |e used t|o select|
|00004fe0| 20 61 20 73 70 65 63 69 | 66 69 63 20 69 6e 70 75 | a speci|fic inpu|
|00004ff0| 74 0a 6d 65 74 68 6f 64 | 2e 0a 0a 58 6c 69 62 2c |t.method|...Xlib,|
|00005000| 20 58 74 20 61 6e 64 20 | 28 70 61 72 74 69 61 6c | Xt and |(partial|
|00005010| 6c 79 29 20 58 61 77 20 | 73 75 70 70 6f 72 74 20 |ly) Xaw |support |
|00005020| 49 4d 73 2e 20 20 54 68 | 75 73 2c 20 61 70 70 6c |IMs. Th|us, appl|
|00005030| 69 63 61 74 69 6f 6e 73 | 20 77 72 69 74 74 65 6e |ications| written|
|00005040| 0a 77 69 74 68 20 58 6c | 69 62 20 6f 72 20 58 74 |.with Xl|ib or Xt|
|00005050| 20 63 61 6e 20 73 75 70 | 70 6f 72 74 20 49 4d 73 | can sup|port IMs|
|00005060| 20 28 73 65 65 20 73 65 | 63 74 69 6f 6e 20 37 2e | (see se|ction 7.|
|00005070| 32 20 6f 6e 20 68 6f 77 | 20 74 6f 20 69 6e 73 74 |2 on how| to inst|
|00005080| 61 6c 6c 0a 69 6e 70 75 | 74 20 6d 65 74 68 6f 64 |all.inpu|t method|
|00005090| 73 20 75 6e 64 65 72 20 | 58 74 29 2e 0a 0a 4d 6f |s under |Xt)...Mo|
|000050a0| 74 69 66 20 31 2e 32 20 | 20 6f 72 20 67 72 65 61 |tif 1.2 | or grea|
|000050b0| 74 65 72 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |ter auto|maticall|
|000050c0| 79 20 75 73 65 73 20 74 | 68 65 20 52 35 2f 52 36 |y uses t|he R5/R6|
|000050d0| 20 69 6e 70 75 74 20 6d | 65 74 68 6f 64 20 41 50 | input m|ethod AP|
|000050e0| 49 73 2e 0a 54 68 75 73 | 20 61 70 70 6c 69 63 61 |Is..Thus| applica|
|000050f0| 74 69 6f 6e 73 20 75 73 | 69 6e 67 20 4d 6f 74 69 |tions us|ing Moti|
|00005100| 66 20 31 2e 32 2b 20 63 | 61 6e 20 62 65 20 6d 61 |f 1.2+ c|an be ma|
|00005110| 64 65 20 74 6f 20 73 75 | 70 70 6f 72 74 20 49 4d |de to su|pport IM|
|00005120| 73 2e 0a 53 65 76 65 72 | 61 6c 20 4d 6f 74 69 66 |s..Sever|al Motif|
|00005130| 20 31 2e 5b 30 31 5d 20 | 76 65 72 73 69 6f 6e 73 | 1.[01] |versions|
|00005140| 20 61 6c 73 6f 20 68 61 | 64 20 73 69 6d 69 6c 61 | also ha|d simila|
|00005150| 72 20 66 75 6e 63 74 69 | 6f 6e 61 6c 69 74 79 20 |r functi|onality |
|00005160| 61 64 64 65 64 20 74 6f | 0a 74 68 65 6d 20 62 79 |added to|.them by|
|00005170| 20 74 68 65 20 72 65 73 | 70 65 63 74 69 76 65 20 | the res|pective |
|00005180| 76 65 6e 64 6f 72 73 2c | 20 62 75 74 20 74 68 65 |vendors,| but the|
|00005190| 73 65 20 65 78 74 65 6e | 73 69 6f 6e 73 20 61 72 |se exten|sions ar|
|000051a0| 65 0a 76 65 6e 64 6f 72 | 2d 73 70 65 63 69 66 69 |e.vendor|-specifi|
|000051b0| 63 20 61 6e 64 20 6e 6f | 74 20 70 6f 72 74 61 62 |c and no|t portab|
|000051c0| 6c 65 2e 0a 0a 58 61 77 | 20 69 31 38 6e 20 69 73 |le...Xaw| i18n is|
|000051d0| 20 62 61 73 65 64 20 75 | 70 6f 6e 20 58 31 31 52 | based u|pon X11R|
|000051e0| 35 20 69 31 38 6e 2c 20 | 6e 6f 74 20 6f 6e 20 52 |5 i18n, |not on R|
|000051f0| 36 2e 20 20 54 68 75 73 | 2c 20 69 74 20 73 75 70 |6. Thus|, it sup|
|00005200| 70 6f 72 74 73 20 52 35 | 0a 69 6e 70 75 74 20 6d |ports R5|.input m|
|00005210| 65 74 68 6f 64 73 2e 20 | 20 52 36 20 61 64 64 65 |ethods. | R6 adde|
|00005220| 64 20 4f 55 54 50 55 54 | 20 4d 45 54 48 4f 44 53 |d OUTPUT| METHODS|
|00005230| 20 77 68 69 63 68 20 61 | 72 65 20 67 6f 6f 64 20 | which a|re good |
|00005240| 66 6f 72 20 6d 61 69 6e | 6c 79 0a 52 2d 74 6f 2d |for main|ly.R-to-|
|00005250| 4c 20 6c 61 6e 67 75 61 | 67 65 73 2c 20 61 6e 64 |L langua|ges, and|
|00005260| 20 61 20 66 65 77 20 6e | 65 77 20 49 4e 50 55 54 | a few n|ew INPUT|
|00005270| 20 4d 45 54 48 4f 44 53 | 20 28 69 6e 2d 74 68 65 | METHODS| (in-the|
|00005280| 2d 73 70 6f 74 20 61 6e | 64 20 49 20 74 68 69 6e |-spot an|d I thin|
|00005290| 6b 0a 6f 6e 65 20 6f 74 | 68 65 72 29 20 74 68 61 |k.one ot|her) tha|
|000052a0| 74 20 58 61 77 20 6d 69 | 67 68 74 20 6e 6f 74 20 |t Xaw mi|ght not |
|000052b0| 73 75 70 70 6f 72 74 2e | 20 20 58 61 77 20 64 6f |support.| Xaw do|
|000052c0| 65 73 20 73 75 70 70 6f | 72 74 0a 6f 76 65 72 2d |es suppo|rt.over-|
|000052d0| 74 68 65 2d 73 70 6f 74 | 2c 20 6f 66 66 2d 74 68 |the-spot|, off-th|
|000052e0| 65 2d 73 70 6f 74 2c 20 | 61 6e 64 20 72 6f 6f 74 |e-spot, |and root|
|000052f0| 2d 77 69 6e 64 6f 77 20 | 63 6f 6e 76 65 72 73 69 |-window |conversi|
|00005300| 6f 6e 2e 20 20 54 6f 20 | 6d 61 6b 65 20 74 68 69 |on. To |make thi|
|00005310| 73 0a 77 6f 72 6b 2c 20 | 79 6f 75 20 6d 69 67 68 |s.work, |you migh|
|00005320| 74 20 6e 65 65 64 20 74 | 6f 20 73 65 74 20 22 2a |t need t|o set "*|
|00005330| 69 6e 74 65 72 6e 61 74 | 69 6f 6e 61 6c 3a 20 54 |internat|ional: T|
|00005340| 72 75 65 22 20 69 6e 20 | 79 6f 75 72 20 72 65 73 |rue" in |your res|
|00005350| 6f 75 72 63 65 73 2e 0a | 20 0a 0a 46 4f 4f 54 4e |ources..| ..FOOTN|
|00005360| 4f 54 45 3a 20 49 66 20 | 79 6f 75 20 63 61 6e 20 |OTE: If |you can |
|00005370| 68 61 76 65 20 63 6f 6d | 6d 65 6e 74 73 2f 63 6f |have com|ments/co|
|00005380| 72 72 65 63 74 69 6f 6e | 73 20 66 6f 72 20 74 68 |rrection|s for th|
|00005390| 69 73 20 73 65 63 74 69 | 6f 6e 20 61 6e 64 20 6f |is secti|on and o|
|000053a0| 6e 0a 20 20 20 20 20 20 | 20 20 20 20 4f 70 65 6e |n. | Open|
|000053b0| 4c 6f 6f 6b 2c 20 70 6c | 65 61 73 65 20 6c 65 74 |Look, pl|ease let|
|000053c0| 20 6d 65 20 6b 6e 6f 77 | 2e 0a 0a 0a 37 2e 34 20 | me know|....7.4 |
|000053d0| 49 31 38 4e 20 75 6e 64 | 65 72 20 58 31 31 52 36 |I18N und|er X11R6|
|000053e0| 2c 20 47 65 6e 65 72 61 | 6c 20 49 6e 66 6f 72 6d |, Genera|l Inform|
|000053f0| 61 74 69 6f 6e 0a 42 61 | 63 6b 67 72 6f 75 6e 64 |ation.Ba|ckground|
|00005400| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 66 72 6f | informa|tion fro|
|00005410| 6d 20 74 68 65 20 58 31 | 31 52 36 20 61 6e 6e 6f |m the X1|1R6 anno|
|00005420| 75 6e 63 65 6d 65 6e 74 | 3a 0a 49 6e 74 65 72 6e |uncement|:.Intern|
|00005430| 61 74 69 6f 6e 61 6c 69 | 7a 61 74 69 6f 6e 20 28 |ationali|zation (|
|00005440| 61 6c 73 6f 20 6b 6e 6f | 77 6e 20 61 73 20 49 31 |also kno|wn as I1|
|00005450| 38 4e 2c 20 74 68 65 72 | 65 20 62 65 69 6e 67 20 |8N, ther|e being |
|00005460| 31 38 20 6c 65 74 74 65 | 72 73 20 62 65 74 77 65 |18 lette|rs betwe|
|00005470| 65 6e 20 74 68 65 0a 69 | 20 61 6e 64 20 6e 29 20 |en the.i| and n) |
|00005480| 6f 66 20 74 68 65 20 58 | 20 57 69 6e 64 6f 77 20 |of the X| Window |
|00005490| 53 79 73 74 65 6d 2c 20 | 77 68 69 63 68 20 77 61 |System, |which wa|
|000054a0| 73 20 6f 72 69 67 69 6e | 61 6c 6c 79 20 69 6e 74 |s origin|ally int|
|000054b0| 72 6f 64 75 63 65 64 20 | 69 6e 20 52 65 6c 65 61 |roduced |in Relea|
|000054c0| 73 65 0a 35 2c 20 68 61 | 73 20 62 65 65 6e 20 73 |se.5, ha|s been s|
|000054d0| 69 67 6e 69 66 69 63 61 | 6e 74 6c 79 20 69 6d 70 |ignifica|ntly imp|
|000054e0| 72 6f 76 65 64 20 69 6e | 20 52 36 2e 20 20 54 68 |roved in| R6. Th|
|000054f0| 65 20 52 36 20 49 31 38 | 4e 20 61 72 63 68 69 74 |e R6 I18|N archit|
|00005500| 65 63 74 75 72 65 20 66 | 6f 6c 6c 6f 77 73 0a 74 |ecture f|ollows.t|
|00005510| 68 61 74 20 69 6e 20 52 | 35 2c 20 62 65 69 6e 67 |hat in R|5, being|
|00005520| 20 62 61 73 65 64 20 6f | 6e 20 74 68 65 20 6c 6f | based o|n the lo|
|00005530| 63 61 6c 65 20 6d 6f 64 | 65 6c 20 75 73 65 64 20 |cale mod|el used |
|00005540| 69 6e 20 41 4e 53 49 20 | 43 20 61 6e 64 20 50 4f |in ANSI |C and PO|
|00005550| 53 49 58 2c 20 77 69 74 | 68 0a 6d 6f 73 74 20 6f |SIX, wit|h.most o|
|00005560| 66 20 74 68 65 20 49 31 | 38 4e 20 63 61 70 61 62 |f the I1|8N capab|
|00005570| 69 6c 69 74 79 20 70 72 | 6f 76 69 64 65 64 20 62 |ility pr|ovided b|
|00005580| 79 20 58 6c 69 62 2e 20 | 20 52 35 20 69 6e 74 72 |y Xlib. | R5 intr|
|00005590| 6f 64 75 63 65 64 20 61 | 20 66 75 6e 64 61 6d 65 |oduced a| fundame|
|000055a0| 6e 74 61 6c 0a 66 72 61 | 6d 65 77 6f 72 6b 20 66 |ntal.fra|mework f|
|000055b0| 6f 72 20 69 6e 74 65 72 | 6e 61 74 69 6f 6e 61 6c |or inter|national|
|000055c0| 69 7a 65 64 20 69 6e 70 | 75 74 20 61 6e 64 20 6f |ized inp|ut and o|
|000055d0| 75 74 70 75 74 2e 20 20 | 49 74 20 63 6f 75 6c 64 |utput. |It could|
|000055e0| 20 65 6e 61 62 6c 65 20 | 62 61 73 69 63 0a 6c 6f | enable |basic.lo|
|000055f0| 63 61 6c 69 7a 61 74 69 | 6f 6e 20 66 6f 72 20 6c |calizati|on for l|
|00005600| 65 66 74 2d 74 6f 2d 72 | 69 67 68 74 2c 20 6e 6f |eft-to-r|ight, no|
|00005610| 6e 2d 63 6f 6e 74 65 78 | 74 20 73 65 6e 73 69 74 |n-contex|t sensit|
|00005620| 69 76 65 2c 20 38 2d 62 | 69 74 20 6f 72 20 6d 75 |ive, 8-b|it or mu|
|00005630| 6c 74 69 2d 62 79 74 65 | 0a 63 6f 64 65 73 65 74 |lti-byte|.codeset|
|00005640| 20 6c 61 6e 67 75 61 67 | 65 73 20 61 6e 64 20 63 | languag|es and c|
|00005650| 75 6c 74 75 72 61 6c 20 | 63 6f 6e 76 65 6e 74 69 |ultural |conventi|
|00005660| 6f 6e 73 2e 20 20 48 6f | 77 65 76 65 72 2c 20 69 |ons. Ho|wever, i|
|00005670| 74 20 64 69 64 20 6e 6f | 74 20 64 65 61 6c 20 77 |t did no|t deal w|
|00005680| 69 74 68 0a 61 6c 6c 20 | 70 6f 73 73 69 62 6c 65 |ith.all |possible|
|00005690| 20 6c 61 6e 67 75 61 67 | 65 73 20 61 6e 64 20 63 | languag|es and c|
|000056a0| 75 6c 74 75 72 61 6c 20 | 63 6f 6e 76 65 6e 74 69 |ultural |conventi|
|000056b0| 6f 6e 73 2e 20 20 52 36 | 20 61 6c 73 6f 20 64 6f |ons. R6| also do|
|000056c0| 65 73 20 6e 6f 74 20 63 | 6f 76 65 72 20 61 6c 6c |es not c|over all|
|000056d0| 0a 70 6f 73 73 69 62 6c | 65 20 6c 61 6e 67 75 61 |.possibl|e langua|
|000056e0| 67 65 73 20 61 6e 64 20 | 63 75 6c 74 75 72 61 6c |ges and |cultural|
|000056f0| 20 63 6f 6e 76 65 6e 74 | 69 6f 6e 73 2c 20 62 75 | convent|ions, bu|
|00005700| 74 20 52 36 20 63 6f 6e | 74 61 69 6e 73 20 73 75 |t R6 con|tains su|
|00005710| 62 73 74 61 6e 74 69 61 | 6c 20 6e 65 77 0a 58 6c |bstantia|l new.Xl|
|00005720| 69 62 20 69 6e 74 65 72 | 66 61 63 65 73 20 74 6f |ib inter|faces to|
|00005730| 20 73 75 70 70 6f 72 74 | 20 49 31 38 4e 20 65 6e | support| I18N en|
|00005740| 68 61 6e 63 65 6d 65 6e | 74 73 2c 20 69 6e 20 6f |hancemen|ts, in o|
|00005750| 72 64 65 72 20 74 6f 20 | 65 6e 61 62 6c 65 20 61 |rder to |enable a|
|00005760| 64 64 69 74 69 6f 6e 61 | 6c 0a 6c 61 6e 67 75 61 |dditiona|l.langua|
|00005770| 67 65 20 73 75 70 70 6f | 72 74 20 61 6e 64 20 6d |ge suppo|rt and m|
|00005780| 6f 72 65 20 70 72 61 63 | 74 69 63 61 6c 20 6c 6f |ore prac|tical lo|
|00005790| 63 61 6c 69 7a 61 74 69 | 6f 6e 2e 0a 0a 54 68 65 |calizati|on...The|
|000057a0| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 73 75 70 70 | additio|nal supp|
|000057b0| 6f 72 74 20 69 73 20 6d | 61 69 6e 6c 79 20 69 6e |ort is m|ainly in|
|000057c0| 20 74 68 65 20 61 72 65 | 61 20 6f 66 20 74 65 78 | the are|a of tex|
|000057d0| 74 20 64 69 73 70 6c 61 | 79 2e 20 20 49 6e 20 6f |t displa|y. In o|
|000057e0| 72 64 65 72 20 74 6f 0a | 73 75 70 70 6f 72 74 20 |rder to.|support |
|000057f0| 6d 75 6c 74 69 2d 62 79 | 74 65 20 65 6e 63 6f 64 |multi-by|te encod|
|00005800| 69 6e 67 73 2c 20 74 68 | 65 20 63 6f 6e 63 65 70 |ings, th|e concep|
|00005810| 74 20 6f 66 20 61 20 46 | 6f 6e 74 53 65 74 20 77 |t of a F|ontSet w|
|00005820| 61 73 20 69 6e 74 72 6f | 64 75 63 65 64 20 69 6e |as intro|duced in|
|00005830| 20 52 35 2e 0a 49 6e 20 | 52 36 2c 20 58 6c 69 62 | R5..In |R6, Xlib|
|00005840| 20 65 6e 68 61 6e 63 65 | 73 20 74 68 69 73 20 63 | enhance|s this c|
|00005850| 6f 6e 63 65 70 74 20 74 | 6f 20 61 20 6d 6f 72 65 |oncept t|o a more|
|00005860| 20 67 65 6e 65 72 61 6c | 69 7a 65 64 20 6e 6f 74 | general|ized not|
|00005870| 69 6f 6e 20 6f 66 20 6f | 75 74 70 75 74 0a 6d 65 |ion of o|utput.me|
|00005880| 74 68 6f 64 73 20 61 6e | 64 20 6f 75 74 70 75 74 |thods an|d output|
|00005890| 20 63 6f 6e 74 65 78 74 | 73 2e 20 20 4a 75 73 74 | context|s. Just|
|000058a0| 20 61 73 20 69 6e 70 75 | 74 20 6d 65 74 68 6f 64 | as inpu|t method|
|000058b0| 73 20 61 6e 64 20 69 6e | 70 75 74 20 63 6f 6e 74 |s and in|put cont|
|000058c0| 65 78 74 73 20 73 75 70 | 2d 0a 70 6f 72 74 20 63 |exts sup|-.port c|
|000058d0| 6f 6d 70 6c 65 78 20 74 | 65 78 74 20 69 6e 70 75 |omplex t|ext inpu|
|000058e0| 74 2c 20 6f 75 74 70 75 | 74 20 6d 65 74 68 6f 64 |t, outpu|t method|
|000058f0| 73 20 61 6e 64 20 6f 75 | 74 70 75 74 20 63 6f 6e |s and ou|tput con|
|00005900| 74 65 78 74 73 20 73 75 | 70 70 6f 72 74 20 63 6f |texts su|pport co|
|00005910| 6d 70 6c 65 78 0a 61 6e | 64 20 6d 6f 72 65 20 69 |mplex.an|d more i|
|00005920| 6e 74 65 6c 6c 69 67 65 | 6e 74 20 74 65 78 74 20 |ntellige|nt text |
|00005930| 64 69 73 70 6c 61 79 2c | 20 64 65 61 6c 69 6e 67 |display,| dealing|
|00005940| 20 6e 6f 74 20 6f 6e 6c | 79 20 77 69 74 68 20 6d | not onl|y with m|
|00005950| 75 6c 74 69 70 6c 65 20 | 66 6f 6e 74 73 20 62 75 |ultiple |fonts bu|
|00005960| 74 0a 61 6c 73 6f 20 77 | 69 74 68 20 63 6f 6e 74 |t.also w|ith cont|
|00005970| 65 78 74 20 64 65 70 65 | 6e 64 65 6e 63 69 65 73 |ext depe|ndencies|
|00005980| 2e 20 20 54 68 65 20 72 | 65 73 75 6c 74 20 69 73 |. The r|esult is|
|00005990| 20 61 20 67 65 6e 65 72 | 61 6c 20 66 72 61 6d 65 | a gener|al frame|
|000059a0| 77 6f 72 6b 20 74 6f 20 | 65 6e 61 62 6c 65 0a 62 |work to |enable.b|
|000059b0| 69 2d 64 69 72 65 63 74 | 69 6f 6e 61 6c 20 74 65 |i-direct|ional te|
|000059c0| 78 74 20 61 6e 64 20 63 | 6f 6e 74 65 78 74 20 73 |xt and c|ontext s|
|000059d0| 65 6e 73 69 74 69 76 65 | 20 74 65 78 74 20 64 69 |ensitive| text di|
|000059e0| 73 70 6c 61 79 2e 0a 0a | 54 68 65 20 64 65 73 63 |splay...|The desc|
|000059f0| 72 69 70 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 58 |ription |of the X|
|00005a00| 31 31 52 36 20 69 6e 74 | 65 72 6e 61 74 69 6f 6e |11R6 int|ernation|
|00005a10| 61 6c 69 7a 61 74 69 6f | 6e 20 66 72 61 6d 65 77 |alizatio|n framew|
|00005a20| 6f 72 6b 20 69 73 0a 61 | 76 61 69 6c 61 62 6c 65 |ork is.a|vailable|
|00005a30| 20 76 69 61 20 61 6e 6f | 6e 79 6d 6f 75 73 20 66 | via ano|nymous f|
|00005a40| 74 70 20 66 72 6f 6d 20 | 66 74 70 2e 78 2e 6f 72 |tp from |ftp.x.or|
|00005a50| 67 20 69 6e 0a 2f 70 75 | 62 2f 52 36 75 6e 74 61 |g in./pu|b/R6unta|
|00005a60| 72 72 65 64 2f 78 63 2f | 64 6f 63 2f 73 70 65 63 |rred/xc/|doc/spec|
|00005a70| 73 2f 69 31 38 6e 2e 0a | 0a 0a 0a 38 2e 20 53 75 |s/i18n..|...8. Su|
|00005a80| 70 70 6f 72 74 69 6e 67 | 20 49 31 38 4e 20 4e 65 |pporting| I18N Ne|
|00005a90| 74 77 6f 72 6b 20 50 72 | 6f 74 6f 63 6f 6c 73 0a |twork Pr|otocols.|
|00005aa0| 38 2e 31 20 4d 49 4d 45 | 0a 4d 49 4d 45 20 69 73 |8.1 MIME|.MIME is|
|00005ab0| 20 73 70 65 63 69 66 69 | 65 64 20 69 6e 20 52 46 | specifi|ed in RF|
|00005ac0| 43 20 31 35 32 31 20 61 | 6e 64 20 52 46 43 20 31 |C 1521 a|nd RFC 1|
|00005ad0| 35 32 32 20 77 68 69 63 | 68 20 61 72 65 20 61 76 |522 whic|h are av|
|00005ae0| 61 69 6c 61 62 6c 65 20 | 66 72 6f 6d 0a 66 74 70 |ailable |from.ftp|
|00005af0| 2e 75 75 2e 6e 65 74 2e | 20 20 54 68 65 72 65 20 |.uu.net.| There |
|00005b00| 69 73 20 61 6c 73 6f 20 | 61 20 4d 49 4d 45 20 46 |is also |a MIME F|
|00005b10| 41 51 20 77 68 69 63 68 | 20 69 73 20 61 76 61 69 |AQ which| is avai|
|00005b20| 6c 61 62 6c 65 20 76 69 | 61 20 61 6e 6f 6e 79 6d |lable vi|a anonym|
|00005b30| 6f 75 73 0a 66 74 70 20 | 66 72 6f 6d 20 66 74 70 |ous.ftp |from ftp|
|00005b40| 2e 69 63 73 2e 75 63 69 | 2e 65 64 75 20 69 6e 20 |.ics.uci|.edu in |
|00005b50| 2f 6d 68 2f 63 6f 6e 74 | 72 69 62 2f 6d 75 6c 74 |/mh/cont|rib/mult|
|00005b60| 69 6d 65 64 69 61 2f 6d | 69 6d 65 2d 66 61 71 2e |imedia/m|ime-faq.|
|00005b70| 74 78 74 2e 67 7a 2e 0a | 28 54 68 69 73 20 66 69 |txt.gz..|(This fi|
|00005b80| 6c 65 20 69 73 20 69 6e | 20 63 6f 6d 70 72 65 73 |le is in| compres|
|00005b90| 73 65 64 20 66 6f 72 6d | 61 74 2e 20 59 6f 75 20 |sed form|at. You |
|00005ba0| 77 69 6c 6c 20 6e 65 65 | 64 20 74 68 65 20 47 4e |will nee|d the GN|
|00005bb0| 55 20 67 75 6e 7a 69 70 | 0a 70 72 6f 67 72 61 6d |U gunzip|.program|
|00005bc0| 20 74 6f 20 64 65 63 6f | 6d 70 72 65 73 73 20 74 | to deco|mpress t|
|00005bd0| 68 69 73 20 66 69 6c 65 | 2e 29 0a 0a 49 66 20 79 |his file|.)..If y|
|00005be0| 6f 75 20 77 61 6e 74 20 | 74 6f 20 77 72 69 74 65 |ou want |to write|
|00005bf0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 77 68 | applica|tions wh|
|00005c00| 69 63 68 20 73 75 70 70 | 6f 72 74 20 74 68 65 20 |ich supp|ort the |
|00005c10| 4d 49 4d 45 20 70 72 6f | 74 6f 63 6f 6c 2c 0a 74 |MIME pro|tocol,.t|
|00005c20| 68 65 72 65 20 61 72 65 | 20 73 65 76 65 72 61 6c |here are| several|
|00005c30| 20 6c 69 62 72 61 72 69 | 65 73 2f 74 6f 6f 6c 73 | librari|es/tools|
|00005c40| 20 77 68 69 63 68 20 63 | 61 6e 20 65 61 73 65 20 | which c|an ease |
|00005c50| 79 6f 75 72 20 74 61 73 | 6b 3a 0a 0a 0a 38 2e 31 |your tas|k:...8.1|
|00005c60| 2e 31 20 6d 65 74 61 6d | 61 69 6c 0a 53 6f 75 72 |.1 metam|ail.Sour|
|00005c70| 63 65 20 66 6f 72 20 73 | 75 70 70 6f 72 74 69 6e |ce for s|upportin|
|00005c80| 67 20 4d 49 4d 45 20 28 | 74 68 65 20 60 6d 65 74 |g MIME (|the `met|
|00005c90| 61 6d 61 69 6c 27 20 70 | 61 63 6b 61 67 65 29 20 |amail' p|ackage) |
|00005ca0| 69 6e 20 76 61 72 69 6f | 75 73 20 6d 61 69 6c 0a |in vario|us mail.|
|00005cb0| 72 65 61 64 65 72 73 20 | 69 73 20 61 76 61 69 6c |readers |is avail|
|00005cc0| 61 62 6c 65 20 76 69 61 | 20 61 6e 6f 6e 79 6d 6f |able via| anonymo|
|00005cd0| 75 73 20 66 74 70 20 66 | 72 6f 6d 20 74 68 75 6d |us ftp f|rom thum|
|00005ce0| 70 65 72 2e 62 65 6c 6c | 63 6f 72 65 2e 63 6f 6d |per.bell|core.com|
|00005cf0| 20 69 6e 0a 2f 70 75 62 | 2f 6e 73 62 2e 20 20 54 | in./pub|/nsb. T|
|00005d00| 68 69 73 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |his dist|ribution|
|00005d10| 20 63 6f 6e 73 69 73 74 | 73 20 6f 66 20 73 65 76 | consist|s of sev|
|00005d20| 65 72 61 6c 20 75 74 69 | 6c 69 74 69 65 73 2c 20 |eral uti|lities, |
|00005d30| 77 68 69 63 68 20 63 61 | 6e 0a 62 65 20 63 61 6c |which ca|n.be cal|
|00005d40| 6c 65 64 20 62 79 20 4d | 49 4d 45 20 61 70 70 6c |led by M|IME appl|
|00005d50| 69 63 61 74 69 6f 6e 73 | 20 74 6f 20 68 61 6e 64 |ications| to hand|
|00005d60| 6c 65 20 4d 49 4d 45 20 | 74 79 70 65 73 2e 0a 0a |le MIME |types...|
|00005d70| 0a 38 2e 31 2e 32 20 4d | 49 4d 45 6c 74 0a 41 20 |.8.1.2 M|IMElt.A |
|00005d80| 22 6c 69 67 68 74 77 65 | 69 67 68 74 22 20 4d 49 |"lightwe|ight" MI|
|00005d90| 4d 45 20 6c 69 62 72 61 | 72 79 20 61 76 61 69 6c |ME libra|ry avail|
|00005da0| 61 62 6c 65 20 76 69 61 | 20 61 6e 6f 6e 20 66 74 |able via| anon ft|
|00005db0| 70 20 66 72 6f 6d 0a 6f | 73 6c 6f 6e 65 74 74 2e |p from.o|slonett.|
|00005dc0| 6e 6f 3a 53 6f 66 74 77 | 61 72 65 2f 4d 73 44 6f |no:Softw|are/MsDo|
|00005dd0| 73 2f 43 6f 6d 6d 2f 4f | 66 66 6c 69 6e 65 2f 6d |s/Comm/O|ffline/m|
|00005de0| 69 6d 65 6c 74 58 58 2e | 7a 69 70 20 0a 0a 49 74 |imeltXX.|zip ..It|
|00005df0| 20 69 73 20 73 6f 75 72 | 63 65 20 63 6f 64 65 20 | is sour|ce code |
|00005e00| 28 41 4e 53 49 20 43 29 | 20 70 61 63 6b 61 67 65 |(ANSI C)| package|
|00005e10| 64 20 61 73 20 61 20 6c | 69 62 72 61 72 79 20 74 |d as a l|ibrary t|
|00005e20| 6f 20 66 61 63 69 6c 69 | 74 61 74 65 0a 63 6f 6e |o facili|tate.con|
|00005e30| 73 74 72 75 63 74 69 6f | 6e 20 6f 66 20 61 20 6c |structio|n of a l|
|00005e40| 69 6d 69 74 65 64 20 4d | 49 4d 45 20 66 61 63 69 |imited M|IME faci|
|00005e50| 6c 69 74 79 20 28 6c 69 | 6d 69 74 65 64 20 3d 3d |lity (li|mited ==|
|00005e60| 20 68 61 6e 64 6c 69 6e | 67 20 6f 6e 6c 79 0a 63 | handlin|g only.c|
|00005e70| 68 61 72 61 63 74 65 72 | 2d 73 65 74 20 61 73 70 |haracter|-set asp|
|00005e80| 65 63 74 73 20 6f 66 20 | 4d 49 4d 45 2c 20 6e 6f |ects of |MIME, no|
|00005e90| 74 20 74 68 65 20 6d 75 | 6c 74 69 6d 65 64 69 61 |t the mu|ltimedia|
|00005ea0| 2d 61 73 70 65 63 74 73 | 29 2e 20 20 49 74 0a 69 |-aspects|). It.i|
|00005eb0| 6e 63 6c 75 64 65 73 20 | 68 6f 6f 6b 73 20 74 6f |ncludes |hooks to|
|00005ec0| 20 72 65 63 6f 64 65 20 | 63 68 61 72 61 63 74 65 | recode |characte|
|00005ed0| 72 20 73 65 74 73 20 69 | 6e 74 6f 20 77 68 61 74 |r sets i|nto what|
|00005ee0| 65 76 65 72 20 73 79 73 | 74 65 6d 20 79 6f 75 20 |ever sys|tem you |
|00005ef0| 61 72 65 0a 72 75 6e 6e | 69 6e 67 20 6f 66 66 20 |are.runn|ing off |
|00005f00| 28 65 2e 67 2e 20 20 69 | 66 20 79 6f 75 20 72 65 |(e.g. i|f you re|
|00005f10| 61 64 20 6d 61 69 6c 20 | 6f 6e 20 61 20 4d 73 44 |ad mail |on a MsD|
|00005f20| 6f 73 20 70 6c 61 74 66 | 6f 72 6d 20 75 73 69 6e |os platf|orm usin|
|00005f30| 67 20 43 50 2d 38 35 30 | 2c 0a 4d 49 4d 45 6c 69 |g CP-850|,.MIMEli|
|00005f40| 74 65 20 6d 61 79 20 62 | 65 20 73 65 74 20 75 70 |te may b|e set up|
|00005f50| 20 73 6f 20 74 68 61 74 | 20 51 55 4f 54 45 44 2d | so that| QUOTED-|
|00005f60| 50 52 49 4e 54 41 42 4c | 45 20 49 53 4f 20 4c 61 |PRINTABL|E ISO La|
|00005f70| 74 69 6e 20 31 20 69 73 | 20 72 65 63 6f 64 65 64 |tin 1 is| recoded|
|00005f80| 0a 69 6e 74 6f 20 43 50 | 2d 38 35 30 20 66 6f 72 |.into CP|-850 for|
|00005f90| 20 72 65 61 64 69 6e 67 | 20 61 6e 64 20 73 61 76 | reading| and sav|
|00005fa0| 69 6e 67 20 74 6f 20 66 | 69 6c 65 29 2e 0a 20 0a |ing to f|ile).. .|
|00005fb0| 49 74 27 73 20 6d 61 69 | 6e 20 75 73 65 20 69 73 |It's mai|n use is|
|00005fc0| 20 74 6f 20 70 72 6f 76 | 69 64 65 20 70 72 6f 67 | to prov|ide prog|
|00005fd0| 72 61 6d 6d 65 72 73 20 | 6f 66 20 73 6f 2d 63 61 |rammers |of so-ca|
|00005fe0| 6c 6c 65 64 20 22 6f 66 | 66 2d 6c 69 6e 65 20 0a |lled "of|f-line .|
|00005ff0| 72 65 61 64 65 72 73 22 | 20 28 75 73 65 64 20 62 |readers"| (used b|
|00006000| 79 20 75 73 65 72 73 20 | 77 68 6f 20 61 63 63 65 |y users |who acce|
|00006010| 73 73 20 49 6e 74 65 72 | 6e 65 74 20 6d 61 69 6c |ss Inter|net mail|
|00006020| 20 74 68 72 6f 75 67 68 | 20 64 69 61 6c 2d 75 70 | through| dial-up|
|00006030| 20 0a 73 65 72 76 69 63 | 65 20 70 72 6f 76 69 64 | .servic|e provid|
|00006040| 65 72 73 29 20 77 69 74 | 68 20 74 68 65 20 74 6f |ers) wit|h the to|
|00006050| 6f 6c 73 20 6e 65 65 64 | 65 64 20 74 6f 20 69 6e |ols need|ed to in|
|00006060| 63 6c 75 64 65 20 70 72 | 6f 70 65 72 20 73 75 70 |clude pr|oper sup|
|00006070| 70 6f 72 74 20 66 6f 72 | 20 0a 51 55 4f 54 45 44 |port for| .QUOTED|
|00006080| 2d 50 52 49 4e 54 41 42 | 4c 45 20 65 6e 63 6f 64 |-PRINTAB|LE encod|
|00006090| 69 6e 67 20 69 6e 20 74 | 68 65 69 72 20 70 72 6f |ing in t|heir pro|
|000060a0| 64 75 63 74 2e 0a 20 0a | 54 68 65 20 61 72 63 68 |duct.. .|The arch|
|000060b0| 69 76 65 20 61 6c 73 6f | 20 63 6f 6e 74 61 69 6e |ive also| contain|
|000060c0| 73 20 61 20 63 6f 75 70 | 6c 65 20 6f 66 20 73 61 |s a coup|le of sa|
|000060d0| 6d 70 6c 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |mple app|lication|
|000060e0| 73 20 74 68 61 74 20 0a | 64 65 6d 6f 6e 73 74 72 |s that .|demonstr|
|000060f0| 61 74 65 73 20 68 6f 77 | 20 74 68 65 20 6c 69 62 |ates how| the lib|
|00006100| 72 61 72 79 20 6d 61 79 | 20 62 65 20 75 73 65 64 |rary may| be used|
|00006110| 2e 20 20 55 4e 4d 49 4d | 45 20 69 73 20 61 20 73 |. UNMIM|E is a s|
|00006120| 74 61 6e 64 2d 61 6c 6f | 6e 65 20 0a 75 74 69 6c |tand-alo|ne .util|
|00006130| 69 74 79 20 74 6f 20 64 | 65 63 6f 64 65 20 4d 49 |ity to d|ecode MI|
|00006140| 4d 45 2d 65 6e 63 6f 64 | 65 64 20 6d 65 73 73 61 |ME-encod|ed messa|
|00006150| 67 65 73 20 28 65 2e 67 | 2e 20 69 74 20 77 6f 72 |ges (e.g|. it wor|
|00006160| 6b 73 20 6c 69 6b 65 20 | 55 55 44 45 43 4f 44 45 |ks like |UUDECODE|
|00006170| 0a 66 6f 72 20 62 69 6e | 61 72 79 20 66 69 6c 65 |.for bin|ary file|
|00006180| 73 20 77 69 74 68 20 42 | 41 53 45 36 34 20 65 6e |s with B|ASE64 en|
|00006190| 63 6f 64 69 6e 67 29 2c | 20 53 45 4e 44 4d 49 4d |coding),| SENDMIM|
|000061a0| 45 20 69 73 20 61 20 73 | 69 6d 70 6c 65 20 75 74 |E is a s|imple ut|
|000061b0| 69 6c 69 74 79 0a 74 6f | 20 73 65 6e 64 20 4d 49 |ility.to| send MI|
|000061c0| 4d 45 2d 65 6e 63 6f 64 | 65 64 20 6d 65 73 73 61 |ME-encod|ed messa|
|000061d0| 67 65 73 20 69 66 20 79 | 6f 75 72 20 73 65 72 76 |ges if y|our serv|
|000061e0| 69 63 65 20 70 72 6f 76 | 69 64 65 72 20 64 6f 65 |ice prov|ider doe|
|000061f0| 73 6e 27 74 20 68 61 76 | 65 0a 50 49 4e 45 20 6f |sn't hav|e.PINE o|
|00006200| 72 20 73 69 6d 69 6c 61 | 72 20 74 6f 6f 6c 73 2e |r simila|r tools.|
|00006210| 0a 0a 54 68 65 20 63 75 | 72 72 65 6e 74 20 76 65 |..The cu|rrent ve|
|00006220| 72 73 69 6f 6e 20 28 32 | 2e 31 29 20 69 73 20 6c |rsion (2|.1) is l|
|00006230| 69 6d 69 74 65 64 20 74 | 6f 20 63 68 61 72 61 63 |imited t|o charac|
|00006240| 74 65 72 20 73 65 74 20 | 69 73 73 75 65 73 2e 20 |ter set |issues. |
|00006250| 20 49 20 61 6d 0a 61 62 | 6f 75 74 20 74 6f 20 72 | I am.ab|out to r|
|00006260| 65 6c 65 61 73 65 20 76 | 65 72 73 69 6f 6e 20 32 |elease v|ersion 2|
|00006270| 2e 32 2c 20 77 68 69 63 | 68 20 77 69 6c 6c 20 73 |.2, whic|h will s|
|00006280| 75 70 70 6f 72 74 20 61 | 64 64 69 74 69 6f 6e 61 |upport a|dditiona|
|00006290| 6c 20 0a 43 6f 6e 74 65 | 6e 74 2d 54 79 70 65 73 |l .Conte|nt-Types|
|000062a0| 20 28 65 2e 67 2e 20 22 | 61 70 70 6c 69 63 61 74 | (e.g. "|applicat|
|000062b0| 69 6f 6e 2f 6f 63 74 65 | 74 2d 73 74 72 65 61 6d |ion/octe|t-stream|
|000062c0| 22 29 2e 0a 0a 0a 0a 39 | 2e 20 50 72 6f 67 72 61 |").....9|. Progra|
|000062d0| 6d 6d 69 6e 67 20 69 6e | 20 50 72 6f 6c 6f 67 20 |mming in| Prolog |
|000062e0| 0a 51 75 69 6e 74 75 73 | 20 50 72 6f 6c 6f 67 20 |.Quintus| Prolog |
|000062f0| 61 6e 64 20 53 49 43 53 | 74 75 73 20 50 72 6f 6c |and SICS|tus Prol|
|00006300| 6f 67 20 61 63 63 65 70 | 74 73 20 49 53 4f 20 63 |og accep|ts ISO c|
|00006310| 68 61 72 61 63 74 65 72 | 73 20 61 73 20 70 61 72 |haracter|s as par|
|00006320| 74 20 6f 66 0a 61 74 6f | 6d 73 2c 20 73 6f 20 79 |t of.ato|ms, so y|
|00006330| 6f 75 20 63 61 6e 20 65 | 76 65 6e 20 64 65 66 69 |ou can e|ven defi|
|00006340| 6e 65 20 67 6f 61 6c 20 | 6e 61 6d 65 73 20 63 6f |ne goal |names co|
|00006350| 6e 74 61 69 6e 69 6e 67 | 20 61 63 63 65 6e 74 65 |ntaining| accente|
|00006360| 64 0a 63 68 61 72 61 63 | 74 65 72 73 2e 20 20 49 |d.charac|ters. I|
|00006370| 2f 4f 20 6f 66 20 38 20 | 62 69 74 20 63 68 61 72 |/O of 8 |bit char|
|00006380| 61 63 74 65 72 73 20 69 | 73 20 28 6f 62 76 69 6f |acters i|s (obvio|
|00006390| 75 73 6c 79 29 20 61 6c | 73 6f 20 73 75 70 70 6f |usly) al|so suppo|
|000063a0| 72 74 65 64 2e 0a 0a 51 | 75 69 6e 74 75 73 20 50 |rted...Q|uintus P|
|000063b0| 72 6f 6c 6f 67 20 61 6c | 73 6f 20 63 61 6e 20 68 |rolog al|so can h|
|000063c0| 61 6e 64 6c 65 20 4b 61 | 6e 6a 69 2e 0a 0a 0a 31 |andle Ka|nji....1|
|000063d0| 30 2e 20 55 6e 69 63 6f | 64 65 0a 0a 53 75 70 70 |0. Unico|de..Supp|
|000063e0| 6f 72 74 20 66 6f 72 20 | 77 69 64 65 20 63 68 61 |ort for |wide cha|
|000063f0| 72 61 63 74 65 72 73 20 | 68 61 73 20 62 65 65 6e |racters |has been|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.